Skip to content

[Question]: Error: Token Endpoint not defined #2086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
foodisready opened this issue Mar 19, 2025 · 0 comments
Open

[Question]: Error: Token Endpoint not defined #2086

foodisready opened this issue Mar 19, 2025 · 0 comments

Comments

@foodisready
Copy link

foodisready commented Mar 19, 2025

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 foodisready changed the title [Bug]: Error: no state in url [Question]: Error: Token Endpoint not defined Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant