Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

240 B
Raw Blame
export const jwt = {
  decode: (token: string): any => {
    if (token) {
      const segments = token.split(".")
      try {
        return JSON.parse(window.atob(segments[1]))
      } catch {
        return undefined
      }
    }
  },
}