mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add checkSession method to acquire new token from Auth0
This commit is contained in:
@@ -174,6 +174,16 @@ webAuth.login({username: 'bar', password: 'foo'}, (err, data) => {});
|
||||
|
||||
webAuth.crossOriginAuthenticationCallback();
|
||||
|
||||
webAuth.checkSession({
|
||||
audience: 'https://mystore.com/api/v2',
|
||||
scope: 'read:order write:order',
|
||||
redirectUri: 'https://example.com/auth/silent-callback'
|
||||
}, (err, authResult) => {
|
||||
// Authentication tokens or error
|
||||
});
|
||||
|
||||
|
||||
|
||||
const authentication = new auth0.Authentication({
|
||||
domain: 'me.auth0.com',
|
||||
clientID: '...',
|
||||
|
||||
8
types/auth0-js/index.d.ts
vendored
8
types/auth0-js/index.d.ts
vendored
@@ -268,6 +268,14 @@ export class WebAuth {
|
||||
* @param options:
|
||||
*/
|
||||
passwordlessVerify(options: PasswordlessVerifyOptions, callback: Auth0Callback<any>): void;
|
||||
|
||||
/**
|
||||
* Renews an existing session on Auth0's servers using `response_mode=web_message` (i.e. Auth0's hosted login page)
|
||||
*
|
||||
* @param options options used in {@link authorize} call
|
||||
* @param callback
|
||||
*/
|
||||
checkSession(options: AuthorizeOptions, callback: Auth0Callback<any>): void;
|
||||
}
|
||||
|
||||
export class Redirect {
|
||||
|
||||
Reference in New Issue
Block a user