[Question]: Error: Token Endpoint not defined
Version
19
I have this configuration for AWS Cognito,
@NgModule({
imports: [AuthModule.forRoot({
config: {
authority: 'https://cognito-idp.us-east-1.amazonaws.com/us-east-1_xxxxx',
clientId: '6k09icbjhc9xxxxxxxx',
redirectUrl: ${window.location.origin}/auth/callback, //'http://localhost:4201/auth/callback',
postLogoutRedirectUri: 'http://localhost:4201/menu',
scope: 'openid profile email offline_access', // 'openid profile ' + your scopes
responseType: 'code',
silentRenew: true,
useRefreshToken: true,
allowUnsafeReuseRefreshToken: true,
renewTimeBeforeTokenExpiresInSeconds: 30,
triggerAuthorizationResultEvent: true,
logLevel: LogLevel.Debug,
}
})],
exports: [AuthModule],
})
I was able to sign in with Google, however it is complaining about auth-callback.component.ts:31 [ERROR] 0-6k09icbjhc9gesr99odbno4ftd - Error: Token Endpoint not defined in the callback. Any idea?