The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: add a default storage key
Alaister Young9c701fa2166a
diff --git a/studio/lib/gotrue.ts b/studio/lib/gotrue.tsindex 6591fcb3a47..2c1bda4fc4c 100644--- a/studio/lib/gotrue.ts+++ b/studio/lib/gotrue.ts@@ -3,9 +3,11 @@ import { GoTrueClient, User } from '@supabase/gotrue-js'export const GOTRUE_URL =process.env.NEXT_PUBLIC_GOTRUE_URL || `${process.env.SUPABASE_URL}/auth/v1`+export const STORAGE_KEY = process.env.NEXT_PUBLIC_STORAGE_KEY || 'supabase.dashboard.auth.token'+export const auth = new GoTrueClient({url: GOTRUE_URL,- autoRefreshToken: true,+ storageKey: STORAGE_KEY,})export const getAuthUser = async (token: String): Promise<any> => {