Skip to content

Commit

Permalink
fix: replace encoded space characters with regular spaces (#40)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ahmedrangel and atinux authored Jan 29, 2024
1 parent 1d0d0cc commit e1f33fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oauth/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function githubEventHandler({ config, onSuccess, onError }: OAuthConfig<O
withQuery(config.authorizationURL as string, {
client_id: config.clientId,
redirect_uri: redirectUrl,
scope: config.scope.join('%20')
scope: config.scope.join(' ')
})
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oauth/microsoft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function microsoftEventHandler({ config, onSuccess, onError }: OAuthConfi
client_id: config.clientId,
response_type: 'code',
redirect_uri: redirectUrl,
scope: scope.join('%20'),
scope: scope.join(' '),
})
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oauth/spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function spotifyEventHandler({ config, onSuccess, onError }: OAuthConfig<
response_type: 'code',
client_id: config.clientId,
redirect_uri: redirectUrl,
scope: config.scope.join('%20')
scope: config.scope.join(' ')
})
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oauth/twitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function twitchEventHandler({ config, onSuccess, onError }: OAuthConfig<O
response_type: 'code',
client_id: config.clientId,
redirect_uri: redirectUrl,
scope: config.scope.join('%20')
scope: config.scope.join(' ')
})
)
}
Expand Down

0 comments on commit e1f33fa

Please sign in to comment.