Function
principalFromToken
(token: VerifiedToken, organizationId: string)
Source from the content-addressed store, hash-verified
| 94 | * Forbidden branch already rejected the no-org case before Authenticated. |
| 95 | */ |
| 96 | const principalFromToken = (token: VerifiedToken, organizationId: string): Principal => ({ |
| 97 | accountId: token.accountId, |
| 98 | organizationId, |
| 99 | organizationName: "", |
| 100 | email: "", |
| 101 | name: null, |
| 102 | avatarUrl: null, |
| 103 | roles: [], |
| 104 | }); |
| 105 | |
| 106 | export const cloudMcpAuthProviderLayer: Layer.Layer< |
| 107 | McpAuthProvider, |
Tested by
no test coverage detected