@asgardeo/browser
v0.1.33
Published
Browser-specific implementation of Asgardeo JavaScript SDK.
Downloads
3,881
Readme
Installation
# Using npm
npm install @asgardeo/browser
# or using pnpm
pnpm add @asgardeo/browser
# or using yarn
yarn add @asgardeo/browserQuick Start
import { AsgardeoAuthClient } from "@asgardeo/browser";
// Initialize the auth client
const authClient = new AsgardeoAuthClient({
afterSignInUrl: "https://localhost:3000",
clientId: "<your_client_id>",
baseUrl: "https://api.asgardeo.io/t/<org_name>"
});
// Sign in
authClient.signIn();
// Get user info after authentication
const userInfo = await authClient.getUser();
// Sign out
authClient.signOut();License
Licenses this source under the Apache License, Version 2.0 LICENSE, You may not use this file except in compliance with the License.
