fix: empty scope in oidc client response
Signed-off-by: Markus <mail@markussiebert.com>
This commit is contained in:
@@ -130,6 +130,9 @@ export class OidcAuthProvider implements OAuthHandlers {
|
||||
if (!tokenset.access_token) {
|
||||
throw new Error('Refresh failed');
|
||||
}
|
||||
if (!tokenset.scope) {
|
||||
tokenset.scope = req.scope;
|
||||
}
|
||||
const userinfo = await client.userinfo(tokenset.access_token);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user