Interface: AuthenticationResult
Defined in: src/types/interfaces/auth.interface.ts:261
Authentication result.
Remarks
Returned from authentication attempts.
Properties
did?
readonlyoptionaldid:DID
Defined in: src/types/interfaces/auth.interface.ts:278
Authenticated user's DID.
Remarks
Only present if success is true or mfaRequired is true.
errors?
readonlyoptionalerrors: readonlystring[]
Defined in: src/types/interfaces/auth.interface.ts:311
Error messages.
Remarks
Present when success is false.
mfaChallenge?
readonlyoptionalmfaChallenge:MFAChallenge
Defined in: src/types/interfaces/auth.interface.ts:303
MFA challenge details.
Remarks
Present when mfaRequired is true.
mfaRequired?
readonlyoptionalmfaRequired:boolean
Defined in: src/types/interfaces/auth.interface.ts:295
Whether MFA is required to complete authentication.
Remarks
If true, client should prompt for MFA and call
completeMFAChallenge with the provided challenge.
sessionToken?
readonlyoptionalsessionToken:SessionToken
Defined in: src/types/interfaces/auth.interface.ts:286
Session tokens.
Remarks
Only present if success is true and MFA is not required.
success
readonlysuccess:boolean
Defined in: src/types/interfaces/auth.interface.ts:270
Whether authentication succeeded.
Remarks
If true, sessionToken will be populated.
If false, errors will describe the failure.
If MFA is required, mfaRequired will be true.