File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
dapps/appkit-siwe/react/src/utils Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ const BASE_URL = 'http://localhost:8080';
50
50
51
51
// call the server to get the session
52
52
const getSession = async ( ) => {
53
- console . log ( 'loadSession' ) ;
54
53
const res = await fetch ( BASE_URL + "/session" , {
55
54
method : "GET" ,
56
55
headers : {
@@ -63,12 +62,11 @@ const BASE_URL = 'http://localhost:8080';
63
62
}
64
63
65
64
const data = await res . json ( ) ;
66
- console . log ( 'Session:' , data ) ;
67
65
return data == "{}" ? null : data as SIWESession ;
68
66
}
69
67
70
68
// call the server to sign out
71
- const signOut = async ( ) => {
69
+ const signOut = async ( ) : Promise < boolean > => {
72
70
const res = await fetch ( BASE_URL + "/signout" , {
73
71
method : "GET" ,
74
72
credentials : 'include' ,
@@ -78,7 +76,7 @@ const signOut = async () => {
78
76
}
79
77
80
78
const data = await res . json ( ) ;
81
- return data == "{}" ? null : data as SIWESession ;
79
+ return data == "{}" ;
82
80
}
83
81
84
82
export const createSIWE = ( chains : [ number ] ) => {
You can’t perform that action at this time.
0 commit comments