Slide 8
Slide 8 text
// ུ
import * as auth0 from 'auth0-js';
@Injectable()
export class AuthService {
auth0 = new auth0.WebAuth({
clientID: AUTH_CONFIG.clientID,
domain: AUTH_CONFIG.domain,
responseType: 'token id_token’,
audience: AUTH_CONFIG.apiUrl,
redirectUri: AUTH_CONFIG.callbackURL,
scope: 'openid'
});
public login(): void {
this.auth0.authorize();
}
}
ೝূͷઃఆ
ϩάΠϯը໘ىಈ