REST endpoints for authentication and token management
packages/cloud/src/routes/auth.routes.ts:19-51
SUPABASE_JWT_SECRET
environment variableAUGMENTOS_AUTH_JWT_SECRET
sub
: User ID from Supabaseemail
: User’s email addressorganizations
: Array of user’s organizationsdefaultOrg
: User’s default organizationpackages/cloud/src/routes/auth.routes.ts:54-69
validateCoreToken
- Validates the core JWT tokentokenService.generateTemporaryToken()
packages/cloud/src/routes/auth.routes.ts:72-93
validateAppApiKey
- Validates app API keytokenService.exchangeTemporaryToken()
packages/cloud/src/routes/auth.routes.ts:96-145
packageName: "org.augmentos.store"
packages/cloud/src/routes/auth.routes.ts:148-162
appService.hashWithApiKey()
packages/cloud/src/routes/auth.routes.ts:176-199
tokenService.issueUserToken()
Code | Description |
---|---|
400 | Missing required parameters |
401 | Invalid or expired token |
403 | Forbidden (wrong package name) |
500 | Internal server error |