Skip to main content

Setup

1

Get credentials

Go to dev.vk.com and create an application. Set the platform to Website and add your redirect URI:
2

Configure

lib/theauth.ts

Scopes

Default scopes: email
VK returns email as part of the access token response rather than a separate userinfo endpoint. theAuth handles this automatically.
This is a preset built on the generic OIDC factory, which reads the user from https://id.vk.com/oauth2/user_info and requires the response to contain the OIDC sub and email fields. That endpoint returns a user.user_id field nested under user, so sign-in is expected to fail with VK userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 18, 2026