mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix incorrect OAuth2 linking logic
This commit is contained in:
parent
2db4f25ba6
commit
d4e1c0d95d
2 changed files with 4 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ export class OAuthManager {
|
|||
const { flow, userInfo } = oidcFlowData;
|
||||
|
||||
// Check if userId is equal to application.clientId
|
||||
if ((flow.application?.clientId ?? "") !== userId) {
|
||||
if (!flow.application?.clientId.startsWith(userId)) {
|
||||
return response(null, 302, {
|
||||
Location: `${config.http.base_url}${
|
||||
config.frontend.routes.home
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue