Skip to content

Commit e1f33fa

Browse files
ahmedrangelatinux
andauthored
fix: replace encoded space characters with regular spaces (#40)
* feat: added twitch as supported oauth provider * chore: improvements * fix: replaced encoded space characters with regular spaces * fix: restore changes --------- Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 1d0d0cc commit e1f33fa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function githubEventHandler({ config, onSuccess, onError }: OAuthConfig<O
7373
withQuery(config.authorizationURL as string, {
7474
client_id: config.clientId,
7575
redirect_uri: redirectUrl,
76-
scope: config.scope.join('%20')
76+
scope: config.scope.join(' ')
7777
})
7878
)
7979
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function microsoftEventHandler({ config, onSuccess, onError }: OAuthConfi
8282
client_id: config.clientId,
8383
response_type: 'code',
8484
redirect_uri: redirectUrl,
85-
scope: scope.join('%20'),
85+
scope: scope.join(' '),
8686
})
8787
)
8888
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function spotifyEventHandler({ config, onSuccess, onError }: OAuthConfig<
7474
response_type: 'code',
7575
client_id: config.clientId,
7676
redirect_uri: redirectUrl,
77-
scope: config.scope.join('%20')
77+
scope: config.scope.join(' ')
7878
})
7979
)
8080
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function twitchEventHandler({ config, onSuccess, onError }: OAuthConfig<O
7777
response_type: 'code',
7878
client_id: config.clientId,
7979
redirect_uri: redirectUrl,
80-
scope: config.scope.join('%20')
80+
scope: config.scope.join(' ')
8181
})
8282
)
8383
}

0 commit comments

Comments
 (0)