mirror of
https://github.com/ysoftdevs/oauth-playground-client.git
synced 2026-04-30 12:24:25 +02:00
Update scopes
This commit is contained in:
@@ -97,9 +97,10 @@
|
||||
<li class="collection-item">
|
||||
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
||||
<p>
|
||||
Scopes requested by the client. Scopes are used to limit the access of the
|
||||
access token. In this case, we are requesting the <b>offline_access</b> scope,
|
||||
which allows the client to obtain a refresh token.
|
||||
Scopes requested by the client. Scopes are used to limit the access of the access
|
||||
token. In this case, we are requesting the <b>offline_access</b> scope,
|
||||
which allows the client to obtain a refresh token, <b>photos</b> to access photos
|
||||
and <b>files</b> to have access to user files.
|
||||
</p>
|
||||
</li>
|
||||
<li class="collection-item">
|
||||
@@ -173,7 +174,7 @@
|
||||
const authUrl = baseUrl + "/passwordless"
|
||||
const responseType = "code";
|
||||
const redirectUri = getRedirectUri();
|
||||
const scope = "offline_access";
|
||||
const scope = "offline_access%20photos%20files";
|
||||
const state = generateSessionState();
|
||||
setCookie("webauth-state", state, 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user