Add scope as a prop

This commit is contained in:
Niki Bregvadze 2020-08-21 01:03:29 +04:00 committed by GitHub
parent b4424f3fe8
commit 7303a3da49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,7 @@
export let redirect_uri;
export let post_logout_redirect_uri;
export let metadata = {};
export let scope = 'openid profile email';
setContext(OIDC_CONTEXT_REDIRECT_URI, redirect_uri);
setContext(OIDC_CONTEXT_POST_LOGOUT_REDIRECT_URI, post_logout_redirect_uri);
@ -84,7 +85,7 @@
redirect_uri,
post_logout_redirect_uri,
response_type: 'code',
scope: 'openid profile email',
scope,
automaticSilentRenew: true,
metadata,
};