sauthbase Class
sauthbase
is the main class of the SDK and provides the interface for all authentication and encryption functionalities.
Overview
- Operates as a singleton
- Use
init()
to initialize, anduse()
to access the instance - Requires
secretKey
andredirect_url
as arguments during initialization
Initialization
TypeScript
const = .({ : "...", : "..." });
Usage
TypeScript
const = .();
Main Method List
- init()
- use()
- isReady()
- generationAuthPageUrl()
- getUser()
- calculateHmac()
- encrypt()
- decrypt()
- generateSecureKey()
- generateEncryptedToken()
- verifySession()
- extractUserWithVerify()
- extractUserUnsafe()
For detailed information about each method, refer to the methods section.
Last updated on