Node.js server SDK
Install the server package in the backend that owns your Vine API key.
bash
npm install @vineeid/serverts
import { VineServer, isMissingData } from '@vineeid/server'
const vine = new VineServer({
baseUrl: 'https://auth-api.vineeid.com',
apiKey: process.env.VINE_API_KEY!,
})
const result = await vine.flow.init({
vid: '657787756543',
request_type: 'login',
scope: ['profile.read'],
})
if (!isMissingData(result)) {
// Store result.flow_secret on your server only.
console.log(result.flow_id, result.code)
}Use vine.flow.getStatus(flowId, flowSecret) from your own backend status endpoint. The SDK also provides flow listing, metrics, and notification resend operations.