Skip to content

Commit

Permalink
fix: seznam config
Browse files Browse the repository at this point in the history
* feat: add seznam oauth provider

* chore: add user type

* fix: seznam config

* fix: updated playground seznam

---------

Co-authored-by: Sébastien Chopin <[email protected]>
  • Loading branch information
stranavad and atinux authored Nov 18, 2024
1 parent 677b226 commit 90d0d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/server/routes/auth/seznam.get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default defineOAUthSeznamEventHandler({
export default defineOAuthSeznamEventHandler({
config: {
scope: ['identity'],
},
Expand Down
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 90d0d18

Please sign in to comment.