• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-js / 16261028777

14 Jul 2025 07:44AM UTC coverage: 72.889%. Remained the same
16261028777

Pull #1497

github

web-flow
Merge 7b175c40d into d78ce0eab
Pull Request #1497: feat: bump auth-js to 2.71.0

55 of 93 branches covered (59.14%)

Branch coverage included in aggregate %.

109 of 132 relevant lines covered (82.58%)

26.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.18
/src/lib/constants.ts
1
// constants.ts
2
import { RealtimeClientOptions } from '@supabase/realtime-js'
3
import { SupabaseAuthClientOptions } from './types'
4
import { version } from './version'
12✔
5

6
let JS_ENV = ''
12✔
7
// @ts-ignore
8
if (typeof Deno !== 'undefined') {
12!
9
  JS_ENV = 'deno'
×
10
} else if (typeof document !== 'undefined') {
12!
11
  JS_ENV = 'web'
×
12
} else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
12!
13
  JS_ENV = 'react-native'
×
14
} else {
15
  JS_ENV = 'node'
12✔
16
}
17

18
export const DEFAULT_HEADERS = { 'X-Client-Info': `supabase-js-${JS_ENV}/${version}` }
12✔
19

20
export const DEFAULT_GLOBAL_OPTIONS = {
12✔
21
  headers: DEFAULT_HEADERS,
22
}
23

24
export const DEFAULT_DB_OPTIONS = {
12✔
25
  schema: 'public',
26
}
27

28
export const DEFAULT_AUTH_OPTIONS: SupabaseAuthClientOptions = {
12✔
29
  autoRefreshToken: true,
30
  persistSession: true,
31
  detectSessionInUrl: true,
32
  flowType: 'implicit',
33
}
34

35
export const DEFAULT_REALTIME_OPTIONS: RealtimeClientOptions = {}
12✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc