Vlens supports OAuth 2.0 authentication via Google and Microsoft (Azure AD B2C). Users can register and log in using an existing social account — skipping the email OTP verification step.
OAuth providers must be configured in the Vlens portal before use:
Contact your Vlens administrator to enable and link the client credentials to your tenant.
After your app obtains an ID token from the provider, send it to Vlens for verification:
Response:
Save oAuthTokenVerificationRequestId — it is required in Step 2.
Pass the oAuthTokenVerificationRequestId to the registration endpoint. This skips the email OTP step because the email is already verified by the OAuth provider.
On success the user is registered and a user access token is returned — same as the standard registration flow.
If a user is already registered but has not verified their email, use VerifyOAuthToken to verify the email via OAuth instead of sending an email OTP:
The response is the same shape as StepVerifyOAuthToken — use the returned oAuthTokenVerificationRequestId to complete the pending registration step.