Skip to content

Commit

Permalink
fix: seznam config
Browse files Browse the repository at this point in the history
  • Loading branch information
stranavad authored Nov 16, 2024
1 parent 110dc48 commit 0a70b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/lib/oauth/seznam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export interface OAuthSeznamUser {
gender?: string | null
}

export function defineOAUthSeznamEventHandler({ config, onSuccess, onError }: OAuthConfig<OAuthSeznamConfig, OAuthSeznamUser>) {
export function defineOAuthSeznamEventHandler({ config, onSuccess, onError }: OAuthConfig<OAuthSeznamConfig, OAuthSeznamUser>) {
return eventHandler(async (event: H3Event) => {
config = defu(config, useRuntimeConfig(event).oauth?.google, {
config = defu(config, useRuntimeConfig(event).oauth?.seznam, {
authorizationURL: 'https://login.szn.cz/api/v1/oauth/auth',
tokenURL: 'https://login.szn.cz/api/v1/oauth/token',
userURL: 'https://login.szn.cz/api/v1/user',
Expand Down

0 comments on commit 0a70b8a

Please sign in to comment.