Skip to content

Commit

Permalink
fix(wabe): url redirection for google oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
coratgerl committed Jan 25, 2025
1 parent b2de3f8 commit 75d8d11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/wabe/src/authentication/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export interface AuthenticationConfig<T extends WabeTypes> {
roles?: RoleConfig
successRedirectPath?: string
failureRedirectPath?: string
frontDomain?: string
backDomain?: string
providers?: Partial<Record<ProviderEnum, ProviderConfig>>
customAuthenticationMethods?: CustomAuthenticationMethods<T>[]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/wabe/src/authentication/oauth/Google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Google implements OAuth2ProviderWithPKCE {

if (!googleConfig) throw new Error('Google config not found')

const redirectURI = `http://127.0.0.1:${
const redirectURI = `http${config.isProduction ? 's' : ''}://${config.authentication?.backDomain || '127.0.0.1'}:${
config.port || 3000
}/auth/oauth/callback`

Expand Down

0 comments on commit 75d8d11

Please sign in to comment.