7.1.0 • Published 10 months ago
@tridnguyen/auth v7.1.0
Auth
Helper functions to work with Auth0
Usage
SPA
import createAuth from "@tridnguyen/auth/spa";
const auth0 = await createAuth({
clientId
authorizationParams: {
redirect_uri: window.location.href,
audience: 'https://lists.cloud.tridnguyen.com',
scope: 'openid profile email'
}
});
await auth0.getTokenSilently({
authorizationParams: {
audience: 'https://lists.cloud.tridnguyen.com',
scope: 'read:list write:list'
}
});
await auth0.logout({
logoutParams: {
returnTo: window.location.href
}
})
Machine to machine
import { getToken } from "@tridnguyen/auth/server";
const token = await getToken({
clientId,
clientSecret,
audience
})
7.1.0
10 months ago
7.0.2
12 months ago
7.0.0
12 months ago
7.0.1
12 months ago
6.2.0
3 years ago
6.1.0
3 years ago
6.0.1
3 years ago
6.0.0
3 years ago
6.1.2
3 years ago
6.0.3
3 years ago
6.1.1
3 years ago
6.0.2
3 years ago
5.5.1
3 years ago
5.5.0
3 years ago
5.5.2
3 years ago
5.4.3
4 years ago
5.4.2
4 years ago
5.4.1
4 years ago
5.4.0
4 years ago
5.3.1
4 years ago
5.3.0
4 years ago
5.2.3
4 years ago
5.2.2
4 years ago
5.2.1
4 years ago
5.2.0
4 years ago
5.1.0
4 years ago
5.0.0
4 years ago
4.0.4
4 years ago
4.0.1
4 years ago
4.0.0
4 years ago
4.0.3
4 years ago
4.0.2
4 years ago
3.0.2
4 years ago
3.1.0
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.4.1
8 years ago
2.4.0
8 years ago
2.3.0
8 years ago
2.2.1
8 years ago
2.2.0
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago