Skip to main content

SocialVerifyRequest

Package: @nauth-toolkit/client Type: Request

Request payload for verifying native social authentication tokens from mobile apps (Capacitor, React Native).

import { SocialVerifyRequest } from '@nauth-toolkit/client';

Properties

PropertyTypeRequiredDescription
providerSocialProviderYesSocial provider ('google', 'apple', 'facebook')
idTokenstringNoID token from native OAuth (Google/Apple)
accessTokenstringNoAccess token from native OAuth
authorizationCodestringNoAuthorization code (Apple Sign-In)

SocialProvider Type

SocialProvider is a type alias: 'google' | 'apple' | 'facebook'

Example

{
"provider": "google",
"idToken": "eyJhbGciOiJSUzI1NiIs...",
"accessToken": "ya29.a0AfH6SMC..."
}

Used By