mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-17 17:51:27 +08:00
fix: DRY getValidToken — cli-team delegates to sync.ts, remove phantom Joined column
- Export getValidToken from sync.ts (was private) - cli-team.ts now uses sync.ts version (supports auto-refresh, was missing) - Remove unused isTokenExpired/getAuthTokens imports from cli-team - Remove "Joined" column from formatMembersTable (team_members has no created_at) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ async function refreshToken(supabaseUrl: string, refreshToken: string, anonKey:
|
||||
}
|
||||
|
||||
/** Get a valid access token, refreshing if needed. */
|
||||
async function getValidToken(config: SyncConfig): Promise<string | null> {
|
||||
export async function getValidToken(config: SyncConfig): Promise<string | null> {
|
||||
if (!isTokenExpired(config.auth)) {
|
||||
return config.auth.access_token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user