I’m using custom UI and to login via a social provider I used to use the code below
this.auth0.authorize({
connection: 'google-oauth2',
state: "SOME_STATE_STRING"
});
However now when compiling, typescript is throwing errors. The interface for AuthorizeOptions is now like so:
authorize(options: AuthorizeOptions): void;
interface AuthorizeOptions {
domain?: string;
clientID?: string;
redirectUri: string;
responseType: string;
responseMode?: string;
state?: string;
nonce?: string;
scope?: string;
audience?: string;
}
Seems like that was added 9 days ago. So I don’t know if it’s an error but it would be nice to have the doc inline with the typescript definition. Update auth0-js to v8.6 (#16704) · DefinitelyTyped/DefinitelyTyped@524b072 · GitHub
So how we tell auth0 we want to authorize via google ? are the @types/
out of date ?