fix: empty scope in oidc client response

Signed-off-by: Markus <mail@markussiebert.com>
This commit is contained in:
Markus
2023-10-12 17:55:27 +02:00
parent b2817daf0c
commit c58f8264f1
@@ -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 {