File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ const {
206
206
isAuthenticated,
207
207
isPending,
208
208
hasFailed,
209
+ error,
209
210
token,
210
211
decodedToken,
211
212
username,
@@ -222,16 +223,17 @@ const {
222
223
223
224
| State | Type | Description |
224
225
| --------------- | ------------------------------------------------------ | ------------------------------------------------------------------- |
225
- | keycloak | ` Ref <` [ ` Keycloak ` ] [ Instance ] ` > ` | Instance of the keycloak-js adapter. |
226
+ | keycloak | ` ShallowRef <` [ ` Keycloak ` ] [ Instance ] ` > ` | Instance of the keycloak-js adapter. |
226
227
| isAuthenticated | ` Ref<boolean> ` | If ` true ` the user is authenticated. |
227
228
| isPending | ` Ref<boolean> ` | If ` true ` the authentication request is still pending. |
228
- | hasFailed | ` Ref<boolean> ` | If ` true ` authentication request has failed. |
229
+ | hasFailed | ` Ref<boolean> ` | If ` true ` an error ocurred on initialization or Keycloak request. |
230
+ | error | ` ShallowRef<Error> ` | Info on error that ocurred (null if no error) |
229
231
| token | ` Ref<string> ` | Raw value of the access token. |
230
- | decodedToken | ` Ref <` [ ` KeycloakTokenParsed ` ] [ TokenParsed ] ` > ` | Decoded value of the access token. |
232
+ | decodedToken | ` ShallowRef <` [ ` KeycloakTokenParsed ` ] [ TokenParsed ] ` > ` | Decoded value of the access token. |
231
233
| username | ` Ref<string> ` | Username. Extracted from ` decodedToken['preferred_username'] ` . |
232
234
| userId | ` Ref<string> ` | User identifier. Extracted from ` decodedToken['sub'] ` . |
233
- | roles | ` Ref <string[]>` | List of the user's roles. |
234
- | resourceRoles | ` Ref <Record<string, string[]>` | List of the user's roles in specific resources. |
235
+ | roles | ` ShallowRef <string[]>` | List of the user's roles. |
236
+ | resourceRoles | ` ShallowRef <Record<string, string[]>` | List of the user's roles in specific resources. |
235
237
236
238
#### Functions
237
239
You can’t perform that action at this time.
0 commit comments