Skip to content

Commit

Permalink
fix(): removal of callback setting
Browse files Browse the repository at this point in the history
Users should update Tokens manually (e.g., on API calls).
  • Loading branch information
JoseGoncalves committed Jan 6, 2023
1 parent 308de42 commit 652a60e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ export async function initKeycloak(initConfig: Keycloak.KeycloakInitOptions): Pr
if (!isNil($keycloak.token)) {
setToken($keycloak.token as string)
}

$keycloak.onAuthRefreshSuccess = () => setToken($keycloak.token as string)
$keycloak.onTokenExpired = () => updateToken()
} catch (error) {
hasFailed(true)
isAuthenticated(false)
Expand Down

0 comments on commit 652a60e

Please sign in to comment.