Module: Types
Enumerations
Classes
- AttributesApi
- BaseAPI
- BaseAnalytics
- BaseUser
- BrowserAnalytics
- Bucket
- ChallengeProcessor
- ChallengeProcessor
- Configuration
- CredentialsStorage
- CredentialsStorageBase
- CrossDomainStorage
- DefaultApi
- EventsApi
- FactorMethodOptionsTypeMap
- Flow
- IdentifiersStorage
- OTPMethodOptions
- PersonConsentsApi
- PersonsApi
- PingRequestMessage
- SlashIDError
- StorageBase
- TOTPMethodOptions
- TokensApi
- WebAuthnCreateRequestMessage
- WebAuthnGetRequestMessage
Interfaces
- APIMeta
- APIPagination
- APIResponseBase
- APIResponseError
- AnonymousPersonCreateReq
- ApiResponse
- Authentication
- AuthnContextUpdateChallenge
- AuthnContextUpdateChallengeOptions
- ConfigurationParameters
- CreateAnonymousUserOptions
- DeleteAttributesBucketNameRequest
- DeleteConsentGdprRequest
- EmailLinkMethodOptions
- ErrorContext
- EventEmitter
- EventPostRequest
- ExportedPasswordCredential
- ExportedPublicKeyCredential
- ExportedTOTPCredential
- ExportedTOTPCredentialParams
- Factor
- FetchParams
- GDPRConsent
- GDPRConsentRequest
- GDPRConsentResponse
- GetAttributes200Response
- GetAttributesBucketName200Response
- GetAttributesBucketNameRequest
- GetAttributesRequest
- GetChallengeChallengeId200Response
- GetChallengeChallengeIdRequest
- GetChallengeChallengeIdV2200Response
- GetChallengeChallengeIdV2Request
- GetChallengePackChallengePackIdRequest
- GetConsentGdpr200Response
- GetConsentGdprRequest
- GetMe200Response
- GetMeOrgs200Response
- GetMeOrgsResp
- GetMeResp
- GetTokenRequest
- GetTokenV2200Response
- GetTokenV2Request
- IDRequest
- IDRequestMetadata
- IDRequestV2
- LegacyHandlerDecoratorFactory
- Message
- Middleware
- NonceAttestation
- NonceAttestationData
- NonceChallenge
- NonceChallengeOptions
- OIDCChallenge
- OIDCChallengeOptions
- OIDCMethodOptions
- OIDCTokensInfo
- OTPAttestation
- OTPAttestationData
- OTPChallenge
- OTPViaEmailMethodOptions
- OTPViaSMSMethodOptions
- Organization
- OrganizationDetails
- OrganizationHierarchy
- PasswordCredentialParams
- PasswordMethodOptions
- PasswordResetAttestation
- PasswordResetAttestationData
- PasswordResetChallenge
- PasswordResetChallengeOptions
- PasswordSetAttestation
- PasswordSetAttestationData
- PasswordSetChallenge
- PasswordSetChallengeOptions
- PasswordValidationRuleset
- PasswordVerifyAttestation
- PasswordVerifyAttestationData
- PasswordVerifyChallenge
- PatchAttributesBucketNameRequest
- PatchAttributesRequest
- PersonHandle
- PersonRet
- PostActionsSdkRequest
- PostAttestationRequest
- PostAttestationV2Request
- PostAttestationV3200Response
- PostAttestationV3Request
- PostAttestationV3Resp
- PostConsentGdprRequest
- PostDirectId201Response
- PostDirectIdRequest
- PostEventsRequest
- PostId200Response
- PostIdRequest
- PostIdV2Request
- PostPersonsAnonymous201Response
- PostPersonsAnonymousRequest
- PostPersonsPersonIdImpersonate201Response
- PostPersonsPersonIdImpersonateRequest
- PostPersonsPersonIdImpersonateV2OperationRequest
- PostPersonsPersonIdImpersonateV2Request
- PostRecoverRequest
- PostSsoResolveOperationRequest
- PostSsoResolveRequest
- PostTokenRequestV2
- PostTokenRevokeRequest
- PostTokenV2Request
- PostTokenValidate200Response
- PostTokenValidateRequest
- ProxyChallenge
- ProxyChallengeOptions
- PublicKeyAuthenticator
- PublicKeyCredentialParams
- PutAttributesBucketNameRequest
- PutAttributesRequest
- PutConsentGdpr200Response
- PutConsentGdprRequest
- RecoverRequest
- RecoverableFactor
- RegexPasswordValidationRule
- RequestContext
- RequestMessage
- RequestOpts
- ResponseContext
- RevokeTokenReq
- SAMLChallenge
- SAMLChallengeOptions
- SAMLMethodOptions
- SDKEventAuthenticationFailedV1
- SDKEventAuthenticationSucceededV1
- SDKEventPersonIdentifiedV1
- SDKEventPersonLoggedOutV1
- SDKEventSlashIDSDKLoadedV1
- SDKEventVirtualPageLoadedV1
- SMSLinkMethodOptions
- SerialisedResponseError
- TOTPMethodOptions
- TOTPRegisterAttestation
- TOTPRegisterAttestationData
- TOTPRegisterChallenge
- TOTPRegisterChallengeOptions
- TOTPVerifyAttestation
- TOTPVerifyAttestationData
- TOTPVerifyChallenge
- TokenContainer
- TokenV2ResponseChallengeList
- TokenV2ResponseToken
- UICustomizationChallenge
- UICustomizationChallengeOptions
- UserToken
- ValidateTokenReq
- ValidateTokenResponse
- WebAuthnCreateAttestation
- WebAuthnCreateChallenge
- WebAuthnGetAttestation
- WebAuthnGetChallenge
- WebAuthnMethodOptions
Enumeration Members
SSOChallenge
• SSOChallenge: 5
Type Aliases
Attestation
Ƭ Attestation: { challenge_type: "nonce" } & NonceAttestation | { challenge_type: "otp" } & OTPAttestation | { challenge_type: "password_reset" } & PasswordResetAttestation | { challenge_type: "password_set" } & PasswordSetAttestation | { challenge_type: "password_verify" } & PasswordVerifyAttestation | { challenge_type: "totp_register" } & TOTPRegisterAttestation | { challenge_type: "totp_verify" } & TOTPVerifyAttestation | { challenge_type: "webauthn_create" } & WebAuthnCreateAttestation | { challenge_type: "webauthn_get" } & WebAuthnGetAttestation
Export
AuthnContextUpdateChallengeReceivedEvent
Ƭ AuthnContextUpdateChallengeReceivedEvent: Object
Type declaration
| Name | Type |
|---|---|
factor? | Factor |
targetOrgId | string |
BaseEvent
Ƭ BaseEvent: Object
Type declaration
| Name | Type |
|---|---|
name | string |
BrowserAnalyticsOptions
Ƭ BrowserAnalyticsOptions: Object
Type declaration
| Name | Type |
|---|---|
sdk | SlashID |
user? | BaseUser |
BucketName
Ƭ BucketName: keyof typeof DefaultBucketName | string
BucketOptions
Ƭ BucketOptions: Object
Type declaration
| Name | Type |
|---|---|
bucketName | BucketName |
user | BaseUser |
Challenge
Ƭ Challenge: ProxyChallenge | NonceChallenge | WebAuthnGetChallenge | WebAuthnCreateChallenge | OIDCChallenge | UICustomizationChallenge
ChallengeListInner
Ƭ ChallengeListInner: { type: "authn_context_update" } & AuthnContextUpdateChallenge | { type: "nonce" } & NonceChallenge | { type: "oidc" } & OIDCChallenge | { type: "otp" } & OTPChallenge | { type: "password_reset" } & PasswordResetChallenge | { type: "password_set" } & PasswordSetChallenge | { type: "password_verify" } & PasswordVerifyChallenge | { type: "proxy" } & ProxyChallenge | { type: "saml" } & SAMLChallenge | { type: "totp_register" } & TOTPRegisterChallenge | { type: "totp_verify" } & TOTPVerifyChallenge | { type: "ui_customization" } & UICustomizationChallenge | { type: "webauthn_create" } & WebAuthnCreateChallenge | { type: "webauthn_get" } & WebAuthnGetChallenge
Export
ChallengeProcessorOptions
Ƭ ChallengeProcessorOptions: Object
Type declaration
| Name | Type | Description |
|---|---|---|
environment? | SlashIDEnvironment | The environment to use for the SlashID API. |
fetchApi? | Configuration["fetchApi"] | HTTP client that implements the Fetch API |
origin? | string | The origin of the request. Used to identify the origin of the request when sending requests to the SlashID API. If allowed domains are configured in the SlashID API, the origin must be one of the allowed domains. Otherwise, use the default value as is. |
ChallengeSSR
Ƭ ChallengeSSR: NonceChallenge | ProxyChallenge
ChallengeType
Ƭ ChallengeType: typeof ChallengeType[keyof typeof ChallengeType]
ClientGeneratedErrorSlug
Ƭ ClientGeneratedErrorSlug: typeof CLIENT_GENERATED_ERROR_SLUGS[number]
ClientSideErrorEvent
Ƭ ClientSideErrorEvent: FlowErrorMetadata & { errorText: "client_side_error" }
An unexpected client side error occurred within the SDK, potentially interrupting authentication.
CredentialType
Ƭ CredentialType: typeof CredentialType[keyof typeof CredentialType]
CustomEnvironment
Ƭ CustomEnvironment: Object
SlashID custom environment name. Values must be provided for baseURL and sdkURL.
Type declaration
| Name | Type |
|---|---|
baseURL | string |
sdkURL | string |
ErrorName
Ƭ ErrorName: typeof ERROR_NAMES[keyof typeof ERROR_NAMES]
EventHandler
Ƭ EventHandler<T>: (event: T) => void
Type parameters
| Name | Type |
|---|---|
T | extends BaseEvent |
Type declaration
▸ (event): void
Parameters
| Name | Type |
|---|---|
event | T |
Returns
void
EventMeta
Ƭ EventMeta: Object
Type declaration
| Name | Type |
|---|---|
access | "private" | "public" |
authFlowId? | string |
recoveryFlowId? | string |
EventName
Ƭ EventName: typeof EventName[keyof typeof EventName]
EventPostRequestEventData
Ƭ EventPostRequestEventData: { event_name: "AuthenticationFailed_v1" } & SDKEventAuthenticationFailedV1 | { event_name: "AuthenticationSucceeded_v1" } & SDKEventAuthenticationSucceededV1 | { event_name: "PersonIdentified_v1" } & SDKEventPersonIdentifiedV1 | { event_name: "PersonLoggedOut_v1" } & SDKEventPersonLoggedOutV1 | { event_name: "SlashIDSDKLoaded_v1" } & SDKEventSlashIDSDKLoadedV1 | { event_name: "VirtualPageLoaded_v1" } & SDKEventVirtualPageLoadedV1
Export
Events
Ƭ Events: PublicReadEvents & PublicWriteEvents
EventsWithNamesMap
Ƭ EventsWithNamesMap: { [K in keyof NamesToEventsMap]: Object }
ExportedCredential
Ƭ ExportedCredential: { type: "password" } & ExportedPasswordCredential | { type: "public-key" } & ExportedPublicKeyCredential | { type: "totp" } & ExportedTOTPCredential
Export
FactorMethod
Ƭ FactorMethod: typeof FactorMethod[keyof typeof FactorMethod]
FactorMethodValues
Ƭ FactorMethodValues: `${Exclude<FactorMethod, "api" | "anonymous" | "direct_id" | "impersonate">}`
FactorOptions
Ƭ FactorOptions: { method: "email_link" } & EmailLinkMethodOptions | { method: "oidc" } & OIDCMethodOptions | { method: "otp_via_email" } & OTPViaEmailMethodOptions | { method: "otp_via_sms" } & OTPViaSMSMethodOptions | { method: "password" } & PasswordMethodOptions | { method: "saml" } & SAMLMethodOptions | { method: "sms_link" } & SMSLinkMethodOptions | { method: "totp" } & TOTPMethodOptions | { method: "webauthn" } & WebAuthnMethodOptions
Export
FactorTypeHelper
Ƭ FactorTypeHelper<T>: { [K in keyof T]: Object }
Type parameters
| Name |
|---|
T |
FlowCancelled
Ƭ FlowCancelled: void
This events can be emitted while the flow is processing the challenges to cancel it.
FlowErrorMetadata
Ƭ FlowErrorMetadata: Object
Type declaration
| Name | Type |
|---|---|
authenticationFactor? | Factor |
challengeId? | string |
failureDetail? | string |
handle? | PersonHandle |
previousToken? | string |
FlowMeta
Ƭ FlowMeta: Object
Type declaration
| Name | Type |
|---|---|
authFlowId? | string |
recoveryFlowId? | string |
GDPRConsentLevel
Ƭ GDPRConsentLevel: typeof GDPRConsentLevel[keyof typeof GDPRConsentLevel]
GDPRConsentLevels
Ƭ GDPRConsentLevels: Object
Type declaration
| Name | Type |
|---|---|
consentLevels | GDPRConsentLevel[] |
HTTPBody
Ƭ HTTPBody: Json | FormData | URLSearchParams
HTTPHeaders
Ƭ HTTPHeaders: Object
Index signature
▪ [key: string]: string
HTTPMethod
Ƭ HTTPMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
HTTPQuery
Ƭ HTTPQuery: Object
Index signature
▪ [key: string]: string | number | null | boolean | (string | number | null | boolean)[] | Set<string | number | null | boolean> | HTTPQuery
HTTPRequestInit
Ƭ HTTPRequestInit: Object
Type declaration
| Name | Type |
|---|---|
body? | HTTPBody |
credentials? | RequestCredentials |
headers? | HTTPHeaders |
method | HTTPMethod |
Handler
Ƭ Handler<T>: (event: T) => void
Type parameters
| Name | Type |
|---|---|
T | unknown |
Type declaration
▸ (event): void
Parameters
| Name | Type |
|---|---|
event | T |
Returns
void
IdFlowFailedEvent
Ƭ IdFlowFailedEvent: FlowErrorMetadata & { errorText: ClientGeneratedErrorSlug }
IdFlowStartedEvent
Ƭ IdFlowStartedEvent: Object
Type declaration
| Name | Type |
|---|---|
authenticationFactor? | Factor |
IdFlowSucceededEvent
Ƭ IdFlowSucceededEvent: Object
This event is emitted when the .id method resolves successfully.
Type declaration
| Name | Type |
|---|---|
authenticationFactor? | Factor |
handle? | PersonHandle |
token | UserTokenText |
IncorrectPasswordSubmittedEvent
Ƭ IncorrectPasswordSubmittedEvent: FlowErrorMetadata
This event is emitted when the submitted password does not match the password stored for the given handle.
InitOverrideFunction
Ƭ InitOverrideFunction: (requestContext: { context: RequestOpts ; init: HTTPRequestInit }) => Promise<RequestInit>
Type declaration
▸ (requestContext): Promise<RequestInit>
Parameters
| Name | Type |
|---|---|
requestContext | Object |
requestContext.context | RequestOpts |
requestContext.init | HTTPRequestInit |
Returns
Promise<RequestInit>
InternalEvents
Ƭ InternalEvents: Object
Type declaration
| Name | Type |
|---|---|
popupFailed | PopupFailedEvent |
InvalidPasswordSubmittedEvent
Ƭ InvalidPasswordSubmittedEvent: FlowErrorMetadata & { failedRules: ValidationRule[] }
This event is emitted when the submitted password does not meet the validation rules.
Json
Ƭ Json: any
JsonArray
Ƭ JsonArray: JsonValue[] | readonly JsonValue[]
JsonObject
Ƭ JsonObject: { [Key in string]: JsonValue } & { [Key in string]?: JsonValue }
JsonPrimitive
Ƭ JsonPrimitive: string | number | boolean | null
JsonValue
Ƭ JsonValue: JsonPrimitive | JsonObject | JsonArray
LogInWithOAuthParams
Ƭ LogInWithOAuthParams: Object
Type declaration
| Name | Type |
|---|---|
clientId | string |
redirectUri | string |
MessageEventPayload
Ƭ MessageEventPayload: WebAuthnCreateRequestMessage | WebAuthnGetRequestMessage | PingRequestMessage | SSOChallengeMessage | PingRequestMessage
Middleware
Ƭ Middleware<T>: (event: T, cancel: () => void) => T | void
Type parameters
| Name | Type |
|---|---|
T | extends BaseEvent |
Type declaration
▸ (event, cancel): T | void
Parameters
| Name | Type |
|---|---|
event | T |
cancel | () => void |
Returns
T | void
NamedEvents
Ƭ NamedEvents: EventsWithNamesMap[keyof EventsWithNamesMap]
NamesToEventsMap
Ƭ NamesToEventsMap: Events & InternalEvents & PrivateEvents
OAuthFlowFailedEvent
Ƭ OAuthFlowFailedEvent: Omit<OIDCMethodOptions, "method"> & { reason: typeof OAuthFailureReason[keyof typeof OAuthFailureReason] }
This event is emitted when the OAuthFlow fails with the specified reason
OAuthFlowStartedEvent
Ƭ OAuthFlowStartedEvent: Omit<OIDCMethodOptions, "method">
This event is emitted once the OAuth flow in the popup UX mode was started
OAuthProvider
Ƭ OAuthProvider: typeof OAuthProvider[keyof typeof OAuthProvider]
OIDCGroupsOptions
Ƭ OIDCGroupsOptions: typeof OIDCGroupsOptions[keyof typeof OIDCGroupsOptions]
OIDCUXMode
Ƭ OIDCUXMode: typeof OIDCUXMode[keyof typeof OIDCUXMode]
OIDCWithExtras
Ƭ OIDCWithExtras: Object
Type declaration
| Name | Type |
|---|---|
extras | PopupExtras |
method | "oidc" |
options | Omit<OIDCMethodOptions, "method"> |
OtpCodeSentEvent
Ƭ OtpCodeSentEvent: void
This event is emitted once the OTP code is sent.
OtpCodeSubmittedEvent
Ƭ OtpCodeSubmittedEvent: string
This event should be emitted when the end user enters the OTP code they received. Event payload is a string containing the OTP code.
OtpIncorrectCodeSubmittedEvent
Ƭ OtpIncorrectCodeSubmittedEvent: Object
This event is emitted if the submitted OTP code is incorrect.
Type declaration
| Name | Type |
|---|---|
challengeId | string |
factor | Factor |
OtpSmsSentEvent
Ƭ OtpSmsSentEvent: void
This event is emitted once the OTP code is sent via SMS.
Deprecated
please use OtpCodeSentEvent instead.
PasswordResetReadyEvent
Ƭ PasswordResetReadyEvent: void
This event is emitted once the SDK is ready to accept a new password as part of the password recovery flow.
PasswordSetReadyEvent
Ƭ PasswordSetReadyEvent: void
This event is emitted once the SDK is ready to accept a new password. It means the handle has been verified.
PasswordSubmittedEvent
Ƭ PasswordSubmittedEvent: string
This event needs to be emitted when the end user enters their password.
PasswordValidationRuleName
Ƭ PasswordValidationRuleName: typeof PasswordValidationRuleName[keyof typeof PasswordValidationRuleName]
PasswordVerifyReadyEvent
Ƭ PasswordVerifyReadyEvent: void
This event is emitted once the SDK is ready to verify an existing password.
PatternMatchType
Ƭ PatternMatchType: typeof PatternMatchType[keyof typeof PatternMatchType]
PersonIdentifiedEvent
Ƭ PersonIdentifiedEvent: Object
Type declaration
| Name | Type |
|---|---|
user | BaseUser |
PersonLoggedOutEvent
Ƭ PersonLoggedOutEvent: Object
Type declaration
| Name | Type |
|---|---|
token | UserTokenText |
PersonType
Ƭ PersonType: typeof PersonType[keyof typeof PersonType]
PopupExtras
Ƭ PopupExtras: Object
Type declaration
| Name | Type |
|---|---|
popup? | Window |
setPopupUrl? | (url: string) => Window | null |
PopupFailedEvent
Ƭ PopupFailedEvent: Object
This event is emitted when the Popup UX mode fails with the specified reason
Type declaration
| Name | Type |
|---|---|
reason | typeof PopupFailureReason[keyof typeof PopupFailureReason] |
PostTokenRevokeSlashIDRequiredConsistencyEnum
Ƭ PostTokenRevokeSlashIDRequiredConsistencyEnum: typeof PostTokenRevokeSlashIDRequiredConsistencyEnum[keyof typeof PostTokenRevokeSlashIDRequiredConsistencyEnum]
PrivateEvents
Ƭ PrivateEvents: Object
We don't differentiate between read and write here because there is no clear API boundary for private events.
This event can be fired by any internal slashid source, and may be listened to by any internal slashid source. There is no concept of "them" and "us" here.
The source is never a third party.
Type declaration
| Name | Type |
|---|---|
clientSideError | ClientSideErrorEvent |
ProductionEnvironment
Ƭ ProductionEnvironment: "production"
SlashID production environment name. Uses the following default values:
const baseURL = "https://api.slashid.com" const sdkURL = "https://cdn.slashid.com/sdk.html"
PublicReadEvents
Ƭ PublicReadEvents: Object
Type declaration
| Name | Type |
|---|---|
authnContextUpdateChallengeReceivedEvent | AuthnContextUpdateChallengeReceivedEvent |
idFlowFailed | IdFlowFailedEvent |
idFlowStarted | IdFlowStartedEvent |
idFlowSucceeded | IdFlowSucceededEvent |
incorrectPasswordSubmitted | IncorrectPasswordSubmittedEvent |
invalidPasswordSubmitted | InvalidPasswordSubmittedEvent |
oauthFlowFailed | OAuthFlowFailedEvent |
oauthFlowStarted | OAuthFlowStartedEvent |
otpCodeSent | OtpCodeSentEvent |
otpIncorrectCodeSubmitted | OtpIncorrectCodeSubmittedEvent |
otpSmsSent | OtpSmsSentEvent |
passwordResetReady | PasswordResetReadyEvent |
passwordSetReady | PasswordSetReadyEvent |
passwordVerifyReady | PasswordVerifyReadyEvent |
recoveryFlowFailed | RecoveryFlowFailedEvent |
recoveryFlowStarted | RecoveryFlowStartedEvent |
recoveryFlowSucceeded | RecoveryFlowSucceededEvent |
redirectUriDiscovered | RedirectUriDiscoveredEvent |
totpCodeRequested | TotpCodeRequested |
totpKeyGenerated | TotpKeyGenerated |
uiCustomizationReceived | UICustomizationReceivedEvent |
userAuthenticatedFromURL | UserAuthenticatedFromURLEvent |
webAuthnChallengeProcessed | WebAuthnChallengeProcessed |
PublicWriteEvents
Ƭ PublicWriteEvents: Object
Type declaration
| Name | Type |
|---|---|
flowCancelled | FlowCancelled |
otpCodeSubmitted | OtpCodeSubmittedEvent |
passwordSubmitted | PasswordSubmittedEvent |
RecoveryFlowFailedEvent
Ƭ RecoveryFlowFailedEvent: FlowErrorMetadata & { errorText: ClientGeneratedErrorSlug }
RecoveryFlowStartedEvent
Ƭ RecoveryFlowStartedEvent: Object
Type declaration
| Name | Type |
|---|---|
authenticationFactor | Factor |
handle | PersonHandle |
RecoveryFlowSucceededEvent
Ƭ RecoveryFlowSucceededEvent: Object
Type declaration
| Name | Type |
|---|---|
authenticationFactor | Factor |
handle | PersonHandle |
RedirectUriDiscoveredEvent
Ƭ RedirectUriDiscoveredEvent: Object
Type declaration
| Name | Type |
|---|---|
redirectUri | string |
RegexValidationRule
Ƭ RegexValidationRule: Object
Type declaration
| Name | Type |
|---|---|
matchType | RegexPasswordValidationRule["match_type"] |
name | RegexPasswordValidationRule["name"] |
regexp | RegExp |
type | "regex" |
Region
Ƭ Region: typeof Region[keyof typeof Region]
SAMLWithExtras
Ƭ SAMLWithExtras: Object
Type declaration
| Name | Type |
|---|---|
extras | PopupExtras |
method | "saml" |
options | Omit<SAMLMethodOptions, "method"> |
SSOChallengeMessage
Ƭ SSOChallengeMessage: Object
Type declaration
| Name | Type |
|---|---|
type | SSOChallenge |
urlParams | string |
SSOChallengeParams
Ƭ SSOChallengeParams: Object
Type declaration
| Name | Type |
|---|---|
csrfToken | string |
ssoChallengeID | string |
ssoCode | string |
SSOUXMode
Ƭ SSOUXMode: typeof SSOUXMode[keyof typeof SSOUXMode]
SandboxEnvironment
Ƭ SandboxEnvironment: "sandbox"
SlashID sandbox environment name. Uses the following default values:
const baseURL = "https://api.sandbox.slashid.com" const sdkURL = "https://cdn.sandbox.slashid.com/sdk.html"
SlashIDConfig
Ƭ SlashIDConfig: Object
Configuration options for the SlashID SDK. Same as SlashIDOptions, but with all required options set. Does not inherit the same set of fields as SlashIDOptions because some of them are going to be removed in the next major version.
Type declaration
| Name | Type |
|---|---|
analyticsEnabled | boolean |
baseURL | string |
identityProviderInitiatedSSOEnabled | boolean |
oid? | string |
sdkURL | string |
SlashIDEnvironment
Ƭ SlashIDEnvironment: ProductionEnvironment | SandboxEnvironment | CustomEnvironment
SlashIDErrorContext
Ƭ SlashIDErrorContext: Record<string, any> & { response?: SerialisedResponseError }
SlashIDErrorInput
Ƭ SlashIDErrorInput: SlashIDInternalErrorInput & { name: SlashIDError["name"] }
SlashIDInternalErrorInput
Ƭ SlashIDInternalErrorInput: Object
Type declaration
| Name | Type |
|---|---|
cause? | Error |
context? | SlashIDErrorContext |
message | string |
name | ErrorName |
TokenV2ReponseType
Ƭ TokenV2ReponseType: typeof TokenV2ReponseType[keyof typeof TokenV2ReponseType]
TokenV2Response
Ƭ TokenV2Response: { type: "challenge_list" } & TokenV2ResponseChallengeList | { type: "token" } & TokenV2ResponseToken
Export
TotpCodeRequested
Ƭ TotpCodeRequested: void
This event is emitted once the SDK is ready to verify a TOTP code.
TotpKeyGenerated
Ƭ TotpKeyGenerated: Object
This event is emitted once the SDK is ready to register new TOTP credential.
Type declaration
| Name | Type |
|---|---|
qrCode | string |
recoveryCodes | string[] |
uri | string |
UICustomization
Ƭ UICustomization: Object
Index signature
▪ [key: string]: any
UICustomizationReceivedEvent
Ƭ UICustomizationReceivedEvent: Object
Type declaration
| Name | Type |
|---|---|
customizationProperties | UICustomization |
UnreachablePhoneNumberError
Ƭ UnreachablePhoneNumberError: SlashIDError & { name: typeof unreachablePhoneNumberError }
UserAuthenticatedFromURLEvent
Ƭ UserAuthenticatedFromURLEvent: Object
Type declaration
| Name | Type |
|---|---|
token | string |
UserTokenText
Ƭ UserTokenText: string
ValidateTokenResponseInvalidityReasonEnum
Ƭ ValidateTokenResponseInvalidityReasonEnum: typeof ValidateTokenResponseInvalidityReasonEnum[keyof typeof ValidateTokenResponseInvalidityReasonEnum]
ValidationRule
Ƭ ValidationRule: RegexValidationRule
WebAuthnAttestation
Ƭ WebAuthnAttestation: typeof WebAuthnAttestation[keyof typeof WebAuthnAttestation]
WebAuthnChallengeProcessed
Ƭ WebAuthnChallengeProcessed: Object
Type declaration
| Name | Type |
|---|---|
credentialId | string |
WebAuthnResidentKey
Ƭ WebAuthnResidentKey: typeof WebAuthnResidentKey[keyof typeof WebAuthnResidentKey]
WebAuthnUserVerification
Ƭ WebAuthnUserVerification: typeof WebAuthnUserVerification[keyof typeof WebAuthnUserVerification]
Variables
ChallengeType
• Const ChallengeType: Object
Export
Type declaration
| Name | Type |
|---|---|
AuthnContextUpdate | "authn_context_update" |
Nonce | "nonce" |
Oidc | "oidc" |
Otp | "otp" |
PasswordReset | "password_reset" |
PasswordSet | "password_set" |
PasswordVerify | "password_verify" |
Proxy | "proxy" |
Saml | "saml" |
TotpRegister | "totp_register" |
TotpVerify | "totp_verify" |
UiCustomization | "ui_customization" |
WebauthnCreate | "webauthn_create" |
WebauthnGet | "webauthn_get" |
CredentialType
• Const CredentialType: Object
The type of the credential
Export
Type declaration
| Name | Type |
|---|---|
Password | "password" |
PublicKey | "public-key" |
Totp | "totp" |
DefaultBucketName
• Const DefaultBucketName: Object
Type declaration
| Name | Type |
|---|---|
end_user_no_access | "end_user_no_access" |
end_user_read_only | "end_user_read_only" |
end_user_read_write | "end_user_read_write" |
person_pool-end_user_no_access | "person_pool-end_user_no_access" |
person_pool-end_user_read_only | "person_pool-end_user_read_only" |
person_pool-end_user_read_write | "person_pool-end_user_read_write" |
ERROR_NAMES
• Const ERROR_NAMES: Object
Type declaration
| Name | Type |
|---|---|
apiResponseError | "APIResponseError" |
badPasskeyScopeError | "BadPasskeyScopeError" |
flowCancelled | "FlowCancelledError" |
handlePatternNotAllowed | "HandlePatternNotAllowedError" |
invalidActionError | "InvalidActionError" |
invalidAuthenticationMethodError | "InvalidAuthenticationMethodError" |
invalidEmailAddressFormatError | "InvalidEmailAddressFormatError" |
invalidPhoneNumberFormatError | "InvalidPhoneNumberFormatError" |
invalidSlashIDConfigurationError | "InvalidSlashIDConfigurationError" |
invalidSlashIDURLParamsError | "InvalidSlashIDURLParamsError" |
noPasswordSet | "noPasswordSet" |
passkeyPromptError | "PasskeyPromptError" |
personExistsError | "PersonExistsError" |
rateLimitError | "RateLimitError" |
recoverNonReachableHandleType | "recoverNonReachableHandleType" |
selfRegistrationNotAllowed | "SelfRegistrationNotAllowed" |
signInAwaitingApproval | "SignInAwaitingApprovalError" |
signUpAwaitingApproval | "SignUpAwaitingApprovalError" |
timeoutError | "TimeoutError" |
unknown | "UnexpectedError" |
unreachablePhoneNumberError | "UnreachablePhoneNumberError" |
EventName
• Const EventName: Object
Export
Type declaration
| Name | Type |
|---|---|
ActiveDirectorySpnCreatedV1 | "ActiveDirectorySPNCreated_v1" |
ActiveDirectorySpnDeletedV1 | "ActiveDirectorySPNDeleted_v1" |
ActiveDirectorySpnRoleUpdatedV1 | "ActiveDirectorySPNRoleUpdated_v1" |
ActiveDirectoryUserCreatedV1 | "ActiveDirectoryUserCreated_v1" |
AnonymousPersonCreatedV1 | "AnonymousPersonCreated_v1" |
AnonymousTokenMintedV1 | "AnonymousTokenMinted_v1" |
AuthenticationFailedV1 | "AuthenticationFailed_v1" |
AuthenticationSucceededV1 | "AuthenticationSucceeded_v1" |
AwsiamRoleAssumeRolePolicyUpdatedV1 | "AWSIAMRoleAssumeRolePolicyUpdated_v1" |
AwsiamRoleCreatedV1 | "AWSIAMRoleCreated_v1" |
AwsiamRoleDeletedV1 | "AWSIAMRoleDeleted_v1" |
AwsiamRoleInlinePoliciesUpdatedV1 | "AWSIAMRoleInlinePoliciesUpdated_v1" |
AwsiamRoleManagedPoliciesUpdatedV1 | "AWSIAMRoleManagedPoliciesUpdated_v1" |
AwsiamRolePermissionsBoundaryUpdatedV1 | "AWSIAMRolePermissionsBoundaryUpdated_v1" |
AwsiamUserCreatedV1 | "AWSIAMUserCreated_v1" |
GateRequestCredentialFoundV1 | "GateRequestCredentialFound_v1" |
GateRequestHandledV1 | "GateRequestHandled_v1" |
GateServerStartedV1 | "GateServerStarted_v1" |
GcpRoleCreatedV1 | "GCPRoleCreated_v1" |
GcpServiceAccountCreatedV1 | "GCPServiceAccountCreated_v1" |
GcpServiceAccountDeletedV1 | "GCPServiceAccountDeleted_v1" |
GcpiamPolicyBindingUpdatedV1 | "GCPIAMPolicyBindingUpdated_v1" |
GdprConsentsChangedV1 | "GdprConsentsChanged_v1" |
MitmAttackDetectedV1 | "MitmAttackDetected_v1" |
OAuth2ClientCreatedInRegionV1 | "OAuth2ClientCreated_InRegion_v1" |
OAuth2ClientCreatedV1 | "OAuth2ClientCreated_v1" |
PasswordChangedV1 | "PasswordChanged_v1" |
PermissionCreatedInRegionV1 | "PermissionCreated_InRegion_v1" |
PermissionCreatedV1 | "PermissionCreated_v1" |
PermissionDeletedInRegionV1 | "PermissionDeleted_InRegion_v1" |
PermissionDeletedV1 | "PermissionDeleted_v1" |
PermissionUpdatedInRegionV1 | "PermissionUpdated_InRegion_v1" |
PermissionUpdatedV1 | "PermissionUpdated_v1" |
PermissionsSetToPersonInRegionV1 | "PermissionsSetToPerson_InRegion_v1" |
PermissionsSetToPersonV1 | "PermissionsSetToPerson_v1" |
PersonCreatedV1 | "PersonCreated_v1" |
PersonDeletedV1 | "PersonDeleted_v1" |
PersonIdentifiedV1 | "PersonIdentified_v1" |
PersonLoggedOutV1 | "PersonLoggedOut_v1" |
RoleCreatedInRegionV1 | "RoleCreated_InRegion_v1" |
RoleCreatedV1 | "RoleCreated_v1" |
RoleDeletedInRegionV1 | "RoleDeleted_InRegion_v1" |
RoleDeletedV1 | "RoleDeleted_v1" |
RoleUpdatedInRegionV1 | "RoleUpdated_InRegion_v1" |
RoleUpdatedV1 | "RoleUpdated_v1" |
RolesSetToPersonInRegionV1 | "RolesSetToPerson_InRegion_v1" |
RolesSetToPersonV1 | "RolesSetToPerson_v1" |
SlashIdsdkLoadedV1 | "SlashIDSDKLoaded_v1" |
SuborganizationCreatedInRegionV1 | "SuborganizationCreated_InRegion_v1" |
SuborganizationCreatedV1 | "SuborganizationCreated_v1" |
TokenMintedV1 | "TokenMinted_v1" |
VirtualPageLoadedV1 | "VirtualPageLoaded_v1" |
FactorMethod
• Const FactorMethod: Object
Allowed login factor
Export
Type declaration
| Name | Type |
|---|---|
Anonymous | "anonymous" |
Api | "api" |
DirectId | "direct_id" |
EmailLink | "email_link" |
Impersonate | "impersonate" |
Oidc | "oidc" |
OtpViaEmail | "otp_via_email" |
OtpViaSms | "otp_via_sms" |
Password | "password" |
Saml | "saml" |
SmsLink | "sms_link" |
Totp | "totp" |
Webauthn | "webauthn" |
GDPRConsentLevel
• Const GDPRConsentLevel: Object
Export
Type declaration
| Name | Type |
|---|---|
Analytics | "analytics" |
Marketing | "marketing" |
Necessary | "necessary" |
None | "none" |
Retargeting | "retargeting" |
Tracking | "tracking" |
OAuthFailureReason
• Const OAuthFailureReason: Object
Type declaration
| Name | Type |
|---|---|
BadOAuthURL | "Bad OAuth sign in URL" |
PopupBlocked | "Popup blocked" |
OAuthProvider
• Const OAuthProvider: Object
Export
Type declaration
| Name | Type |
|---|---|
Apple | "apple" |
Azuread | "azuread" |
Bitbucket | "bitbucket" |
Facebook | "facebook" |
Github | "github" |
Gitlab | "gitlab" |
Google | "google" |
Line | "line" |
Okta | "okta" |
OIDCGroupsOptions
• Const OIDCGroupsOptions: Object
Determines whether the OIDC call should fetch groups data.
Export
Type declaration
| Name | Type |
|---|---|
False | "false" |
True | "true" |
OIDCUXMode
• Const OIDCUXMode: Object
Determines how the OIDC login page is presented to the user; defaults to popup.
Export
Type declaration
| Name | Type |
|---|---|
Popup | "popup" |
Redirect | "redirect" |
PasswordValidationRuleName
• Const PasswordValidationRuleName: Object
Export
Type declaration
| Name | Type |
|---|---|
AdminVariants | "admin_variants" |
AlphanumericSequences1 | "alphanumeric_sequences_1" |
AlphanumericSequences2 | "alphanumeric_sequences_2" |
CommonPasswordXkcd | "common_password_xkcd" |
Length | "length" |
NumericSequencesAscending | "numeric_sequences_ascending" |
NumericSequencesDescending | "numeric_sequences_descending" |
NumericSubsequencesAscending | "numeric_subsequences_ascending" |
NumericSubsequencesDescending | "numeric_subsequences_descending" |
PasswordVariants | "password_variants" |
UserVariants | "user_variants" |
PatternMatchType
• Const PatternMatchType: Object
Export
Type declaration
| Name | Type |
|---|---|
Match | "must_match" |
NotMatch | "must_not_match" |
PersonType
• Const PersonType: Object
Export
Type declaration
| Name | Type |
|---|---|
Anonymous | "anonymous" |
Regular | "regular" |
PopupFailureReason
• Const PopupFailureReason: Object
Type declaration
| Name | Type |
|---|---|
BadAuthURL | "Bad authentication URL" |
PopupBlocked | "Popup blocked" |
PostTokenRevokeSlashIDRequiredConsistencyEnum
• Const PostTokenRevokeSlashIDRequiredConsistencyEnum: Object
Export
Type declaration
| Name | Type |
|---|---|
AllRegions | "all_regions" |
LocalRegion | "local_region" |
Region
• Const Region: Object
Export
Type declaration
| Name | Type |
|---|---|
AsiaJapan | "asia-japan" |
AustraliaSydney | "australia-sydney" |
EuropeBelgium | "europe-belgium" |
EuropeEngland | "europe-england" |
UsIowa | "us-iowa" |
SSOUXMode
• Const SSOUXMode: Object
Determines how the SSO login page is presented to the user; defaults to popup.
Export
Type declaration
| Name | Type |
|---|---|
Popup | "popup" |
Redirect | "redirect" |
TokenV2ReponseType
• Const TokenV2ReponseType: Object
Export
Type declaration
| Name | Type |
|---|---|
ChallengeList | "challenge_list" |
Token | "token" |
ValidateTokenResponseInvalidityReasonEnum
• Const ValidateTokenResponseInvalidityReasonEnum: Object
Export
Type declaration
| Name | Type |
|---|---|
Expired | "expired" |
InvalidIssuer | "invalid_issuer" |
InvalidTokenContent | "invalid_token_content" |
NotEnoughFactors | "not_enough_factors" |
PersonNotActive | "person_not_active" |
WebAuthnAttestation
• Const WebAuthnAttestation: Object
Export
Type declaration
| Name | Type |
|---|---|
Direct | "direct" |
Indirect | "indirect" |
None | "none" |
WebAuthnResidentKey
• Const WebAuthnResidentKey: Object
Export
Type declaration
| Name | Type |
|---|---|
Discouraged | "discouraged" |
Preferred | "preferred" |
Required | "required" |
WebAuthnUserVerification
• Const WebAuthnUserVerification: Object
Export
Type declaration
| Name | Type |
|---|---|
Discouraged | "discouraged" |
Preferred | "preferred" |
Required | "required" |