Skip to content

Commit 7010dd2

Browse files
vladikoffkadikraman
authored andcommitted
Make scopes an Array in the docs to avoid React Native crash (#79)
* Make scopes an Array in the docs to avoid React Native crash * Add missing space
1 parent bf1d4d7 commit 7010dd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const config = {
6464
issuer: '<YOUR_ISSUER_URL>',
6565
clientId: '<YOUR_CLIENT_ID>',
6666
redirectUrl: '<YOUR_REDIRECT_URL>',
67-
scopes: '<YOUR_SCOPES_ARRAY>'
67+
scopes: ['<YOUR_SCOPES_ARRAY>'],
6868
};
6969

7070
const result = await authorize(config);
@@ -113,7 +113,7 @@ const config = {
113113
issuer: '<YOUR_ISSUER_URL>',
114114
clientId: '<YOUR_CLIENT_ID>',
115115
redirectUrl: '<YOUR_REDIRECT_URL>',
116-
scopes: '<YOUR_SCOPES_ARRAY>',
116+
scopes: ['<YOUR_SCOPES_ARRAY>'],
117117
};
118118

119119
const result = await refresh(config, {
@@ -132,7 +132,7 @@ const config = {
132132
issuer: '<YOUR_ISSUER_URL>',
133133
clientId: '<YOUR_CLIENT_ID>',
134134
redirectUrl: '<YOUR_REDIRECT_URL>',
135-
scopes: '<YOUR_SCOPES_ARRAY>',
135+
scopes: ['<YOUR_SCOPES_ARRAY>'],
136136
};
137137

138138
const result = await revoke(config, {
@@ -348,7 +348,7 @@ const config = {
348348
issuer: '<YOUR_ISSUER_URL>',
349349
clientId: '<YOUR_CLIENT_ID>',
350350
redirectUrl: '<YOUR_REDIRECT_URL>',
351-
scopes: '<YOUR_SCOPES_ARRAY>'
351+
scopes: ['<YOUR_SCOPES_ARRAY>'],
352352
};
353353

354354
// use the client to make the auth request and receive the authState

0 commit comments

Comments
 (0)