You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/schemes/oauth2.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ auth: {
18
18
token_type:'Bearer',
19
19
redirect_uri:undefined,
20
20
client_id:'SET_ME',
21
-
token_key:'access_token'
21
+
token_key:'access_token',
22
+
state:'UNIQUE_AND_NON_GUESSABLE'
22
23
}
23
24
}
24
25
}
@@ -64,6 +65,11 @@ By default is set to `token_key: 'access_token'`. If you need to use the IdToken
64
65
65
66
By default is set to `refresh_token_key: 'refresh_token'`. It automatically store the refresh_token, if it exists.
66
67
68
+
### `state`
69
+
70
+
By default is set to random generated string.
71
+
The primary reason for using the state parameter is to mitigate CSRF attacks. ([read more](https://auth0.com/docs/protocols/oauth2/oauth-state))
0 commit comments