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