angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Question]: Error: Token Endpoint not defined

Open foodisready opened this issue 9 months ago • 0 comments

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?

foodisready avatar Mar 19 '25 02:03 foodisready