> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vlenseg.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.vlenseg.com/_mcp/server.

# May 12, 2026

## New features

### OAuth login — Google and Microsoft

Users can now register and authenticate using an existing Google or Microsoft account, eliminating the need for a separate email verification OTP.

**New endpoints:**

* `POST /api/DigitalIdentity/Register/StepVerifyOAuthToken` — verifies an OAuth ID token during registration and returns an `oAuthTokenVerificationRequestId`
* `POST /api/DigitalIdentity/VerifyOAuthToken` — verifies an OAuth token to skip email verification for an already-registered user

**Updated endpoint:**

* `POST /api/DigitalIdentity/Register` — now accepts `oAuthTokenVerificationRequestId` in the request body; providing it skips the email verification step

**Supported providers:**

* Google — configure client credentials in the [Google Cloud Platform Console](https://console.cloud.google.com/)
* Microsoft — configure via [Azure AD B2C](https://docs.microsoft.com/azure/active-directory-b2c/)

OAuth provider configuration is managed in the Vlens portal settings.

**Example flow:**

```bash
# 1 — Verify the OAuth token from Google/Microsoft
POST /api/DigitalIdentity/Register/StepVerifyOAuthToken
{
  "provider": "Google",
  "IdToken": "<id_token_from_google>"
}

# 2 — Register, skipping email OTP
POST /api/DigitalIdentity/Register
{
  "phoneNumber": "+201234567890",
  "oAuthTokenVerificationRequestId": "<guid_from_step_1>"
}
```