File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { getGitHubAccessToken } from "./getters/get -github-access-token " ;
1
+ import { checkSupabaseSession } from "./rendering/render -github-login-button " ;
2
2
3
3
declare const WORKER_URL : string ; // @DEV : passed in at build time check build/esbuild-build.ts
4
4
@@ -20,14 +20,14 @@ export async function trackDevRelReferral(devGitHubId: number) {
20
20
if ( devRelCode && devRelCode != "done" ) {
21
21
const url = `${ WORKER_URL } /tracker?key=${ encodeURIComponent ( devGitHubId ) } &value=${ encodeURIComponent ( devRelCode ) } ` ;
22
22
23
- const accessToken = await getGitHubAccessToken ( ) ;
23
+ const authToken = await checkSupabaseSession ( ) ;
24
24
25
25
const response = await fetch ( url , {
26
26
method : "POST" ,
27
27
headers : {
28
28
"Content-Type" : "application/json" ,
29
29
} ,
30
- body : JSON . stringify ( accessToken ) ,
30
+ body : JSON . stringify ( authToken ) ,
31
31
} ) ;
32
32
33
33
if ( response . status === 200 ) {
You can’t perform that action at this time.
0 commit comments