Skip to content

Commit

Permalink
fix(): fixed composable typings
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseGoncalves committed Jan 30, 2024
1 parent fd753a9 commit bdfdeaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/composable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { KeycloakInstance } from 'keycloak-js'
import type { KeycloakInstance, KeycloakTokenParsed } from 'keycloak-js'
import { toRefs, Ref } from 'vue'
import { getKeycloak } from './keycloak'
import { KeycloakState, state } from './state'
Expand All @@ -9,6 +9,7 @@ export interface KeycloakComposable {
hasFailed: Ref<boolean>
isPending: Ref<boolean>
token: Ref<string>
decodedToken: Ref<KeycloakTokenParsed>
username: Ref<string>
roles: Ref<string[]>
resourceRoles: Ref<Record<string, string[]>>
Expand Down

0 comments on commit bdfdeaf

Please sign in to comment.