()
| 50 | } |
| 51 | |
| 52 | export 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 | |
| 67 | export function makeLogoutUrl() { |
| 68 | if (!Cookies.get("id_token")) { |
nothing calls this directly
no outgoing calls
no test coverage detected