Function
principalFromToken
(token: VerifiedToken, organizationId: string)
Source from the content-addressed store, hash-verified
| 71 | * Forbidden branch already rejected the no-org case before Authenticated. |
| 72 | */ |
| 73 | const principalFromToken = (token: VerifiedToken, organizationId: string): Principal => ({ |
| 74 | accountId: token.accountId, |
| 75 | organizationId, |
| 76 | organizationName: "", |
| 77 | email: "", |
| 78 | name: null, |
| 79 | avatarUrl: null, |
| 80 | roles: [], |
| 81 | }); |
| 82 | |
| 83 | export const cloudMcpAuthProviderLayer: Layer.Layer< |
| 84 | McpAuthProvider, |
Tested by
no test coverage detected