Skip to content

Commit 90d0d18

Browse files
stranavadatinux
andauthored
fix: seznam config
* feat: add seznam oauth provider * chore: add user type * fix: seznam config * fix: updated playground seznam --------- Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 677b226 commit 90d0d18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

playground/server/routes/auth/seznam.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default defineOAUthSeznamEventHandler({
1+
export default defineOAuthSeznamEventHandler({
22
config: {
33
scope: ['identity'],
44
},

src/runtime/server/lib/oauth/seznam.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export interface OAuthSeznamUser {
116116
gender?: string | null
117117
}
118118

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

0 commit comments

Comments
 (0)