sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| async function authorizeLifecycle(authorization: string): Promise<boolean> { | |
| const dangerousJwt = authorization.split(" ").at(-1); | |
| if (!dangerousJwt) return false; | |
| const decoded = jwt.decode(dangerousJwt, { complete: true }); | |
| if (!decoded) return false; | |
| const kid = decoded.header.kid; | |
| if (!kid) return false; |