mirror of
https://github.com/tale/headplane.git
synced 2026-08-13 15:07:24 +00:00
fix: handle URI components in provider ID
This commit is contained in:
@@ -12,7 +12,8 @@ export function getOidcSubject(user: User): string | undefined {
|
||||
return;
|
||||
}
|
||||
|
||||
return user.providerId.split("/").pop();
|
||||
const segment = user.providerId.split("/").pop();
|
||||
return segment ? decodeURIComponent(segment) : segment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user