-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathinit.js
More file actions
24 lines (18 loc) · 682 Bytes
/
init.js
File metadata and controls
24 lines (18 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import * as Sentry from '@sentry/browser';
import { createClient } from '@supabase/supabase-js';
window.Sentry = Sentry;
const supabaseClient = createClient('https://test.supabase.co', 'test-key');
Sentry.init({
dsn: 'https://public@dsn.ingest.sentry.io/1337',
integrations: [Sentry.browserTracingIntegration(), Sentry.supabaseIntegration({ supabaseClient })],
tracesSampleRate: 1.0,
});
// Simulate authentication operations
async function performAuthenticationOperations() {
await supabaseClient.auth.signInWithPassword({
email: 'test@example.com',
password: 'test-password',
});
await supabaseClient.auth.signOut();
}
performAuthenticationOperations();