MCPcopy Create free account
hub / github.com/devfullcycle/fc-keycloak / getAuth

Function getAuth

authentication-flow/implicit-flow/src/utils.ts:52–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52export function getAuth() {
53 const token = Cookies.get("access_token");
54
55 if (!token) {
56 return null;
57 }
58
59 try {
60 return decodeJwt(token);
61 } catch (e) {
62 console.error(e);
63 return null;
64 }
65}
66
67export function makeLogoutUrl() {
68 if (!Cookies.get("id_token")) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected