Skip to content

Commit

Permalink
fix: supabase wants to persist by default, we dont use auth tho
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Aug 6, 2023
1 parent f539a19 commit 3ae63b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dota/src/db/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.DB_URL ?? ''
const supabaseKey = process.env.DB_SECRET ?? ''

const supabase = createClient(supabaseUrl, supabaseKey)
const supabase = createClient(supabaseUrl, supabaseKey, { auth: { persistSession: false } })
export default supabase
2 changes: 1 addition & 1 deletion packages/twitch/chat/src/db/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.DB_URL ?? ''
const supabaseKey = process.env.DB_SECRET ?? ''

const supabase = createClient(supabaseUrl, supabaseKey)
const supabase = createClient(supabaseUrl, supabaseKey, { auth: { persistSession: false } })
export default supabase
2 changes: 1 addition & 1 deletion packages/twitch/events/src/db/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.DB_URL ?? ''
const supabaseKey = process.env.DB_SECRET ?? ''

const supabase = createClient(supabaseUrl, supabaseKey)
const supabase = createClient(supabaseUrl, supabaseKey, { auth: { persistSession: false } })
export default supabase

0 comments on commit 3ae63b7

Please sign in to comment.