Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
entropi-co/surge-jsWorks with
•JSR Score76%•This package works with Node.js, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun




Publisheda year ago (0.5.1)
Official client library for entropi Surge
c
T
AuthChangeEvent
No documentation available
T
AuthChangeEventMFA
No documentation available
T
AuthenticatorAssuranceLevels
No documentation available
c
T
AuthFlowType
No documentation available
c
c
AuthInvalidCredentialsError
No documentation available
c
AuthInvalidTokenResponseError
No documentation available
c
T
AuthResponse
No documentation available
T
AuthResponsePassword
No documentation available
c
AuthRetryableFetchError
No documentation available
c
AuthSessionMissingError
No documentation available
T
AuthTokenResponsePassword
No documentation available
c
c
AuthWeakPasswordError
This error is thrown on certain methods when the password used is deemed weak. Inspect the reasons to identify what password strength rules are inadequate.
T
CallRefreshTokenResult
No documentation available
c
I
T
f
isAuthApiError
No documentation available
f
isAuthError
No documentation available
f
isAuthRetryableFetchError
No documentation available
f
isAuthSessionMissingError
No documentation available
f
isAuthWeakPasswordError
No documentation available
T
LockFunc
Provide your own global lock implementation instead of the default
implementation. The function should acquire a lock for the duration of the
fn async function, such that no other client instances will be able to
hold it at the same time.
v
T
OAuthResponse
No documentation available
T
Provider
One of the providers supported by Surge.
I
Session
No documentation available
T
T
T
SignInWithPasswordCredentials
No documentation available
T
T
T
T
SignUpWithPasswordCredentials
No documentation available
T
SignUpWithPasswordIdentifier
No documentation available
T
T
T
SSOResponse
No documentation available
I
T
SupportedStorage
No documentation available
c
SurgeClient
No documentation available
- __loadSession
- _acquireLock
- _autoRefreshTokenTick
- _callRefreshToken
- _debug
- _emitInitialSession
- _exchangeCodeForSession
- _getSessionFromURL
- _getUrlForProvider
- _getUser
- _handleProviderSignIn
- _handleVisibilityChange
- _initialize
- _isImplicitGrantFlow
- _isPKCEFlow
- _isValidSession
- _notifyAllSubscribers
- _onVisibilityChanged
- _recoverAndRefresh
- _refreshAccessToken
- _refreshSession
- _removeSession
- _removeVisibilityChangedCallback
- _saveSession
- _setSession
- _signOut
- _signOutJwt
- _startAutoRefresh
- _stopAutoRefresh
- _updateUser
- _useSession
- autoRefreshTicker
- autoRefreshToken
- broadcastChannel
- detectSessionInUrl
- fetch
- flowType
- getSession
- getUser
- hasCustomAuthorizationHeader
- headers
- initialize
- initializePromise
- instanceID
- lock
- lockAcquired
- logDebugMessages
- logger
- memoryStorage
- nextInstanceID
- onAuthStateChange
- pendingInLock
- persistSession
- refreshSession
- refreshingDeferred
- setSession
- signInWithOAuth
- signInWithPassword
- signOut
- signUp
- startAutoRefresh
- stateChangeEmitters
- stopAutoRefresh
- storage
- storageKey
- suppressGetSessionWarning
- updateUser
- url
- visibilityChangedCallback
T
I
I
I
UserIdentity
No documentation available
I
UserMetadata
No documentation available
T
UserResponse
No documentation available
T
T
WeakPasswordReasons
No documentation available