(identity: Identity)
| 50 | }; |
| 51 | |
| 52 | const emailOf = (identity: Identity): string => identity.credentials?.email ?? identity.label; |
| 53 | |
| 54 | /** The org the bearer is scoped to, read from the JWT's public claims. */ |
| 55 | const orgIdOf = (bearer: string): string => { |