emellum
05/06/2022, 11:18 PMNeedle
05/06/2022, 11:18 PMemellum
05/06/2022, 11:20 PMgaryaustin
05/06/2022, 11:22 PMNeedle
05/06/2022, 11:22 PMemellum
05/06/2022, 11:23 PMgaryaustin
05/06/2022, 11:25 PMemellum
05/06/2022, 11:39 PMDuplicate API Key Found
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
const jwtSecret = process.env.SUPABASE_JWT_SECRET!
export const supabase = (jwt?) => {
const options = jwt
? {
headers: {
apiKey: jwtSecret,
Authorisation: `Bearer ${jwt}`,
},
}
: {}
return createClient(supabaseUrl, supabaseAnonKey, options)
const supabase = createClient(supabaseUrl, supabaseAnonKey)
const { user } = supabase.auth.setAuth(jwt)
return supabase
Allowed things to work.