Add API token roles and separate them from users.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/960c4ce7-993c-4ccb-b1e1-47068c824af5.jpg
This commit is contained in:
alphaeusmote
2025-04-11 16:14:44 +00:00
parent 8d046e9670
commit f57a2e4e6d
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -438,6 +438,7 @@ export class MemStorage implements IStorage {
token: token.token,
organizationId: token.organizationId,
permissions: token.permissions ?? null,
role: token.role || 'readonly',
createdBy: token.createdBy,
isActive: token.isActive ?? true,
expiresAt: token.expiresAt ?? null,