Readonly
adminProtected
appProtected
Readonly
appProtected
autoProtected
Readonly
channelProtected
Readonly
configProtected
Readonly
emitterProtected
getProtected
initializePrivate
instanceIDProtected
logProtected
refreshProtected
refreshProtected
Readonly
scuteProtected
visibilityProtected
wretcherPrivate
Static
nextPrivate
_addInternal
Protected
_confirmConfirm invite.
Magic link token
Optional
userMeta: Metadata{UserMeta} Meta fields
Protected
_getInternal
Get access token from the current session.
{Session}
Private
_getInternal
Auth token
Private
_getInternal
Auth token
Protected
_getInternal
fresh
needs to be set to true
to get the latest data from the server.Optional
fresh: booleanFetch new data from the server
Emit refetch event when getting fresh data
Protected
_identifierInternal
Protected
_initializeInternal
Initializes the client SDK (making sure it is initialized only once).
Private
_initializeInternal
fetch new data from the server
Protected
_refreshInternal
Protected
_revokeRevoke session.
Session ID
Access Token
Private
_sendInternal
Send login magic link.
{ScuteIdentifier}
Optional
webauthnEnabled: boolean{boolean}
Private
_sendInternal
Send magic link request.
Optional
userMeta: MetadataPrivate
_sendInternal
Send register magic link.
{ScuteIdentifier}
Optional
userMeta: Metadata{UserMeta}
Optional
webauthnEnabled: boolean{boolean}
Private
_setupPrivate
_signInternal
Log in.
Optional
options: ScuteSignInOptionsPrivate
_signInternal
{ScuteIdentifier}
{UniqueIdentifier}
Protected
_signPrivate
_signInternal
Creates a user.
Optional
options: ScuteSignUpOptionsProtected
_updateUpdate user meta.
{UserMeta} - Meta fields
Access Token
Protected
_userGet all user sessions.
Access Token
Private
_verifyInternal
Verify magic link token
Magic link token (sct_magic)
Private
_webauthnInternal
Credential Attestation
Auth token
Private
_webauthnInternal
Auth token
Private
_webauthnInternal
Credential Attestation
Private
_webauthnInternal
{ScuteIdentifier}
Private
_webauthn{UniqueIdentifier}
Webauthn credential request options
true if the credential id is not found in the browser and server.
Register device for webauthn. This method will trigger the browser popup.
Scute Device
Confirm invite.
Magic link token
{UserMeta} Meta fields
Protected
debugProtected
deleteOptional
headers: HeadersInitProtected
deleteInternal
Delete credential id.
{UniqueIdentifier}
{UniqueIdentifier}
Protected
emitInternal
Emit an auth event so it can be listened to with onAuthStateChange.
{AuthChangeEvent}
Optional
session: null | Session{Session}
Optional
user: null | ScuteUserData{ScuteUserData}
Protected
getOptional
headers: HeadersInitGet app config data.
fresh
needs to be set to true
to get the latest data from the server.
fetch new data from the server instead cached
Get the access token from the current session.
Protected
getInternal
Get all stored credential ids as array.
{UniqueIdentifier}
Protected
getInternal
Rest
...params: [accessToken: string]Get access token if the magic link consumed.
Magic link status id
Get current session.
Get the user by current session or by an auth token.
Optional
accessToken: null | stringAuth token.
Protected
initialGet all sessions for the authenticated user.
Receive a notification every time an auth event happens.
A callback function to be invoked when an auth event happens.
Protected
patchOptional
headers: HeadersInitProtected
postOptional
headers: HeadersInitProtected
putOptional
headers: HeadersInitRefetch session.
Refresh and save new auth token with current session.
Protected
registerProtected
registerProtected
removeRevoke the specific session of the current user.
Session ID
Optional
credentialId: null | UniqueIdentifier(Optional) credentialId
Send login magic link and emit the pending event.
{ScuteIdentifier}
Optional
webauthnEnabled: boolean{boolean} - Magic link token includes this in the payload
{boolean} - Emit pending event. Default true.
Send register magic link and emit the pending event.
{ScuteIdentifier}
Optional
userMeta: MetadataOptional
webauthnEnabled: boolean{boolean}
{boolean} - Emit pending event. Default true.
Set refresh proxy callback. This is useful when you do not want to pass the refresh token to the client.
Send request to your backend server to refresh session with secret key in callback function.
Callback function to
Protected
setProtected
setSet session to the storage. If persistence is not disabled session will remain between hard refreshes.
{ScuteTokenPayload}
Log in an existing user with an email adress or phone number. Scute will try to sign in with webauthn if not disabled and supported by the browser, otherwise it will continue with fallback method.
{ScuteIdentifier}
Optional
options: ScuteSignInOptions{ScuteSignInOptions}
Polling data if webauthn is not available else null.
Log in or create a new user.
{ScuteIdentifier}
Optional
options: ScuteSignInOrUpOptions{ScuteSignInOrUpOptions}
Polling data if webauthn is not available else null.
Log in with the magic link url.
Optional
url: string | URL(Optional) magic link url with sct_magic param. Default window.location.href
.
Log in with the magic link status id if it is consumed.
{UniqueIdentifier} - Magic link status id
Log in with magic link token.
Magic link token (sct_magic)
Log in with registering the current device.
{ScuteTokenPayload} - Scute auth payload
Log in with the auth payload.
{ScuteTokenPayload} - Scute auth payload
Verify the device (assert webauthn credentials) and log in.
{ScuteIdentifier}
Creates a new user.
{ScuteIdentifier}
Optional
options: ScuteSignUpOptions{ScuteSignInOptions}
Polling data if magic link is usable.
Protected
storeInternal
Store credential id.
{UniqueIdentifier}
{UniqueIdentifier}
Update user meta for the current user.
{UserMeta}
Verify the magic link url.
Optional
url: string | URL(Optional) magic link url with sct_magic param. Default window.location.href
.
Verify magic link token
Magic link token (sct_magic)
Finalizes webauthn login by attempting popup and sending credential to the server.
{webauthn.CredentialRequestOptionsJSON} - Credential request options
Finalizes webauthn register by attempting popup and sending credential to the server.
Credential creation options
Auth token
Initialize webauthn login.
{ScuteIdentifier}
Initializes webauthn register.
Access token
Generated using TypeDoc
Auth token