AuthUserSummary
Package: @nauth-toolkit/client
Type: Response
Minimal user information returned in authentication responses. Contains essential user data without full profile details.
import { AuthUserSummary } from '@nauth-toolkit/client';
Properties
| Property | Type | Description |
|---|---|---|
sub | string | User subject identifier (public ID) |
email | string | User email address |
firstName | string | null | User first name |
lastName | string | null | User last name |
phone | string | null | Phone number in E.164 format |
isEmailVerified | boolean | Whether email is verified |
isPhoneVerified | boolean | Whether phone is verified |
socialProviders | string[] | null | Linked social auth providers |
hasPasswordHash | boolean | Whether user has a password set |
Example
{
"sub": "user_abc123",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phone": "+14155551234",
"isEmailVerified": true,
"isPhoneVerified": true,
"socialProviders": ["google"],
"hasPasswordHash": true
}
Related Types
AuthUser- Complete user profile with all fieldsAuthResponse- ContainsAuthUserSummaryinuserproperty
Used By
- AuthResponse -
userproperty on successful authentication - NAuthClient.login() - Returns
AuthResponsewithAuthUserSummary - NAuthClient.signup() - Returns
AuthResponsewithAuthUserSummary - NAuthClient.respondToChallenge() - Returns
AuthResponsewithAuthUserSummary