1.0.17 • Published 12 months ago
@authkitcom/core v1.0.17
AuthKit Javascript
Overview
The AuthKit core JavaScript library.
Install
NPM:
npm install --save @authkitcom/core
Yarn:
yarn add @authkitcom/core
Basic Usage
To use the library, create and AuthKit object and call the authorize method. If the user is not authenticated, they will be redirected to the authorize endpoint first.
import { createAuthKitForDOM } from '@authkitcom/core';
const authKit = createAuthKitForDOM({
clientId: '9cc49356433b89a1bf244dd00cb34523',
issuer: 'https://mytenant.authkit.com',
scope: ['email', 'profile', 'openid'],
redirectHandler: (uri: string) {
window.location.href = uri;
}
});
// Authorize
const auth = await authkit.authorize();
const accessToken = await auth.getTokens().accessToken;
1.0.17
12 months ago
1.0.16
1 year ago
1.0.11
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.2
1 year ago
1.0.0
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.10
1 year ago
0.13.11
2 years ago
0.13.10
2 years ago
0.13.7
2 years ago
0.13.8
2 years ago
0.13.9
2 years ago
0.13.3
2 years ago
0.13.4
2 years ago
0.13.5
2 years ago
0.13.2
3 years ago
0.13.1
3 years ago
0.12.2
3 years ago
0.12.0
3 years ago
0.12.1
3 years ago
0.11.1
3 years ago
0.11.0
3 years ago
0.10.0
3 years ago
0.10.1
3 years ago
0.9.10
3 years ago