(jwt: string)
| 21 | if (token || refreshToken) { |
| 22 | try { |
| 23 | const decodeJWT = (jwt: string) => { |
| 24 | try { |
| 25 | const parts = jwt.split('.') |
| 26 | return parts.length === 3 ? JSON.parse(atob(parts[1])) : null |
| 27 | } catch { return null } |
| 28 | } |
| 29 | |
| 30 | const email = |
| 31 | decodeJWT(token)?.email?.toLowerCase() || |
no outgoing calls
no test coverage detected