1.0.17 • Published 2 years ago

@authkitcom/core v1.0.17

Weekly downloads
180
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.0.16

2 years ago

1.0.11

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

0.13.11

3 years ago

0.13.10

3 years ago

0.13.7

3 years ago

0.13.8

3 years ago

0.13.9

3 years ago

0.13.3

4 years ago

0.13.4

4 years ago

0.13.5

4 years ago

0.13.2

4 years ago

0.13.1

4 years ago

0.12.2

4 years ago

0.12.0

4 years ago

0.12.1

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.10.1

4 years ago

0.9.10

4 years ago