🗝️JWT Of the Access Token
And why it's not supposed to be read on the client side.
Was this helpful?
And why it's not supposed to be read on the client side.
Was this helpful?
Was this helpful?
import { decodeJwt } from "oidc-spa/tools/decodeJwt";
const decodedAccessToken = decodeJwt(oidc.getTokens().accessToken);import { decodeJwt } from "oidc-spa/tools/decodeJwt";
const { oidcTokens } = useOidc();
const decodedAccessToken = decodeJwt(oidcTokens.accessToken);