Download mobile/src/services/deployment/auth/DeploymentAuthProvider.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/services/deployment/auth/DeploymentAuthProvider.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/services/deployment/auth/DeploymentAuthProvider.ts
-
curl -L -o DeploymentAuthProvider.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/services/deployment/auth/DeploymentAuthProvider.ts
669 Bytes
| export interface WorkspaceIdentity { | |
| deploymentId: string | |
| issuer: string | |
| subject: string | |
| email?: string | |
| displayName?: string | |
| } | |
| export interface WorkspaceTokenRequest { | |
| scopes: string[] | |
| forceRefresh?: boolean | |
| } | |
| export interface DeploymentAuthSession { | |
| identity: WorkspaceIdentity | |
| accessToken?: string | |
| } | |
| export interface DeploymentAuthProvider { | |
| getSession(): Promise<DeploymentAuthSession | null> | |
| signIn(): Promise<DeploymentAuthSession> | |
| getAccessToken(request: WorkspaceTokenRequest): Promise<string> | |
| signOut(): Promise<void> | |
| onStateChange(listener: (session: DeploymentAuthSession | null) => void): () => void | |
| } | |