Module: Types
Enumerations
Classes
- Analytics
- AttributesApi
- BaseAPI
- BaseUser
- Bucket
- Configuration
- CredentialsStorage
- CredentialsStorageBase
- CrossDomainStorage
- DefaultApi
- EventsApi
- FactorMethodOptionsTypeMap
- IdentifiersStorage
- OTPMethodOptions
- PersonConsentsApi
- StorageBase
- TokensApi
Interfaces
- APIMeta
- APIPagination
- APIResponseBase
- APIResponseError
- ApiResponse
- Authentication
- ConfigurationParameters
- DeleteAttributesBucketNameRequest
- DeleteConsentGdprRequest
- ErrorContext
- EventPostRequest
- ExportedCredential
- Factor
- FetchParams
- GDPRConsent
- GDPRConsentRequest
- GDPRConsentResponse
- GetAttributes200Response
- GetAttributesBucketName200Response
- GetAttributesBucketNameRequest
- GetAttributesRequest
- GetChallengeChallengeId200Response
- GetChallengeChallengeIdRequest
- GetChallengeChallengeIdV2200Response
- GetChallengeChallengeIdV2Request
- GetChallengePackChallengePackIdRequest
- GetConsentGdpr200Response
- GetConsentGdprRequest
- GetMe200Response
- GetMeResp
- GetTokenRequest
- IDRequest
- Message
- Middleware
- NonceAttestation
- NonceAttestationData
- NonceChallenge
- NonceChallengeOptions
- OIDCChallenge
- OIDCChallengeOptions
- OIDCMethodOptions
- OIDCTokens
- OTPAttestation
- OTPAttestationData
- OTPChallenge
- Organization
- OrganizationDetails
- PersonHandle
- PersonRet
- PostAttestationOperationRequest
- PostAttestationV2Request
- PostConsentGdprRequest
- PostDirectId201Response
- PostDirectIdRequest
- PostEventsRequest
- PostId200Response
- PostIdRequest
- PostTokenValidate200Response
- PostTokenValidateRequest
- ProxyChallenge
- ProxyChallengeOptions
- PutAttributesBucketNameRequest
- PutAttributesRequest
- PutConsentGdpr200Response
- PutConsentGdprRequest
- RequestContext
- RequestMessage
- RequestOpts
- ResponseContext
- SDKEventAuthenticationFailedV1
- SDKEventAuthenticationSucceededV1
- SDKEventVirtualPageLoadedV1
- SlashIDOptions
- TokenContainer
- UserToken
- ValidateTokenReq
- ValidateTokenResponse
- WebAuthnCreateAttestation
- WebAuthnCreateChallenge
- WebAuthnGetAttestation
- WebAuthnGetChallenge
- WebAuthnMethodOptions
Type Aliases
AnalyticsOptions
Ƭ AnalyticsOptions: 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
ChallengeListInner
Ƭ ChallengeListInner: { type: "nonce" } & NonceChallenge | { type: "oidc" } & OIDCChallenge | { type: "otp" } & OTPChallenge | { type: "proxy" } & ProxyChallenge | { type: "webauthn_create" } & WebAuthnCreateChallenge | { type: "webauthn_get" } & WebAuthnGetChallenge
Export
ChallengeType
Ƭ ChallengeType: typeof ChallengeType[keyof typeof ChallengeType]
EventName
Ƭ EventName: typeof EventName[keyof typeof EventName]
EventPostRequestEventData
Ƭ EventPostRequestEventData: { event_name: "AuthenticationFailed_v1" } & SDKEventAuthenticationFailedV1 | { event_name: "AuthenticationSucceeded_v1" } & SDKEventAuthenticationSucceededV1 | { event_name: "VirtualPageLoaded_v1" } & SDKEventVirtualPageLoadedV1
Export
Events
Ƭ Events: PublicReadEvents & PublicWriteEvents
FactorMethod
Ƭ FactorMethod: typeof FactorMethod[keyof typeof FactorMethod]
FactorMethodValues
Ƭ FactorMethodValues: `${Exclude<FactorMethod, "api" | "direct_id">}`
FactorOptions
Ƭ FactorOptions: OIDCMethodOptions | WebAuthnMethodOptions
Export
FactorTypeHelper
Ƭ FactorTypeHelper<T>: { [K in keyof T]: Object }
Type parameters
| Name |
|---|
T |
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>: MittHandler<T>
Type parameters
| Name |
|---|
T |
IdFlowFailedEvent
Ƭ IdFlowFailedEvent: Object
Type declaration
| Name | Type |
|---|---|
authenticationFactor? | Factor |
errorText | string |
previousToken? | UserTokenText |
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 |
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>
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
OAuthFlowFailedEvent
Ƭ OAuthFlowFailedEvent: OIDCMethodOptions & { reason: typeof OAuthFailureReason[keyof typeof OAuthFailureReason] }
This event is emitted when the OAuthFlow fails with the specified reason
OAuthFlowStartedEvent
Ƭ OAuthFlowStartedEvent: OIDCMethodOptions
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 | { popup?: Window ; setPopupUrl?: (url: string) => Window | null } |
extras.popup? | Window |
extras.setPopupUrl? | (url: string) => Window | null |
method | "oidc" |
options | OIDCMethodOptions |
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: void
This event is emitted if the submitted OTP code is incorrect.
OtpSmsSentEvent
Ƭ OtpSmsSentEvent: void
This event is emitted once the OTP code is sent via SMS.
Deprecated
please use OtpCodeSentEvent instead.
PostAttestationRequest
Ƭ PostAttestationRequest: { challenge_type: "nonce" } & NonceAttestation | { challenge_type: "otp" } & OTPAttestation | { challenge_type: "webauthn_create" } & WebAuthnCreateAttestation | { challenge_type: "webauthn_get" } & WebAuthnGetAttestation
Export
PublicReadEvents
Ƭ PublicReadEvents: Object
Type declaration
| Name | Type |
|---|---|
idFlowFailed | IdFlowFailedEvent |
idFlowStarted | IdFlowStartedEvent |
idFlowSucceeded | IdFlowSucceededEvent |
oauthFlowFailed | OAuthFlowFailedEvent |
oauthFlowStarted | OAuthFlowStartedEvent |
otpCodeSent | OtpCodeSentEvent |
otpIncorrectCodeSubmitted | OtpIncorrectCodeSubmittedEvent |
otpSmsSent | OtpSmsSentEvent |
userAuthenticatedFromURL | UserAuthenticatedFromURLEvent |
webAuthnChallengeProcessed | WebAuthnChallengeProcessed |
PublicWriteEvents
Ƭ PublicWriteEvents: Object
Type declaration
| Name | Type |
|---|---|
otpCodeSubmitted | OtpCodeSubmittedEvent |
SlashIDEmitter
Ƭ SlashIDEmitter: Emitter<Events>
UserAuthenticatedFromURLEvent
Ƭ UserAuthenticatedFromURLEvent: Object
Type declaration
| Name | Type |
|---|---|
token | string |
UserTokenText
Ƭ UserTokenText: string
ValidateTokenResponseInvalidityReasonEnum
Ƭ ValidateTokenResponseInvalidityReasonEnum: typeof ValidateTokenResponseInvalidityReasonEnum[keyof typeof ValidateTokenResponseInvalidityReasonEnum]
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 |
|---|---|
Nonce | "nonce" |
Oidc | "oidc" |
Otp | "otp" |
Proxy | "proxy" |
WebauthnCreate | "webauthn_create" |
WebauthnGet | "webauthn_get" |
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" |
EventName
• Const EventName: Object
Export
Type declaration
| Name | Type |
|---|---|
AuthenticationFailedV1 | "AuthenticationFailed_v1" |
AuthenticationSucceededV1 | "AuthenticationSucceeded_v1" |
PersonCreatedV1 | "PersonCreated_v1" |
PersonDeletedV1 | "PersonDeleted_v1" |
VirtualPageLoadedV1 | "VirtualPageLoaded_v1" |
FactorMethod
• Const FactorMethod: Object
Allowed login factor
Export
Type declaration
| Name | Type |
|---|---|
Api | "api" |
DirectId | "direct_id" |
EmailLink | "email_link" |
Oidc | "oidc" |
OtpViaEmail | "otp_via_email" |
OtpViaSms | "otp_via_sms" |
SmsLink | "sms_link" |
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 |
|---|---|
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" |
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" |