override onelogin start and refresh scope

Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
This commit is contained in:
Matteo Silvestri
2024-06-04 12:07:26 +02:00
parent 3e1bb15674
commit 3606cce508
@@ -58,6 +58,7 @@ export const oneLoginAuthenticator = createOAuthAuthenticator({
},
async start(input, helper) {
input.scope = 'openid';
return helper.start(input, {
accessType: 'offline',
prompt: 'consent',
@@ -69,6 +70,7 @@ export const oneLoginAuthenticator = createOAuthAuthenticator({
},
async refresh(input, helper) {
input.scope = 'openid';
return helper.refresh(input);
},
});