The TypeScript Auth SDK enables you to authenticate users without requiring a particular frontend framework.Documentation Index
Fetch the complete documentation index at: https://docs.microapp.io/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
1. Install the SDK
Install the SDK with your preferred package manager.2. Import and Initialize the Auth SDK
To use the Auth SDK in your code, import it in any file where you need to use it.sandbox feature on the Auth class to return mocked users:
3. Check if the User is Authenticated
TheisAuthenticated method returns the user’s authentication status: true if authenticated and false if unauthenticated.
4. Get the User’s Profile Information
ThegetUser method returns the user’s profile information.
3. Prompt the User to Log In
If the user is not authenticated, you can prompt them to authenticate by calling therequestLogin method.
5. Get Notified when the User is Authenticated
You can get notified when the user authenticates usingonUserAuthenticated method.