Skip to main content

AdminSignupSocialResponse

Package: @nauth-toolkit/client Type: Response

Response payload for admin social user import. Returns the created user object and social account information for confirmation.

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

Properties

PropertyTypeDescription
socialAccountobjectSocial account information
socialAccount.providerstringSocial provider name (e.g., 'google', 'apple', 'facebook')
socialAccount.providerEmailstring | nullProvider's email address (if available)
socialAccount.providerIdstringProvider's unique user identifier
userAuthUserCreated user object (same structure as AuthUser)

Example

{
"user": {
"id": 125,
"sub": "c43d876e-4968-6390-ce00-e397305c87ef",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"isEmailVerified": true,
"isPhoneVerified": false,
"isActive": true,
"isLocked": false,
"mfaEnabled": false,
"hasPasswordHash": false,
"socialProviders": ["google"],
"createdAt": "2024-01-15T12:10:00.000Z",
"updatedAt": "2024-01-15T12:10:00.000Z"
},
"socialAccount": {
"provider": "google",
"providerId": "google_12345",
"providerEmail": "user@gmail.com"
}
}

Used By