yzs
04/26/2022, 7:27 AMattemptRefreshingSession
and doesSessionExist
keep returning false
ts
const api = axios.create({ baseURL: '/api', timeout: 5_000 });
SuperTokens.addAxiosInterceptors(api);
SuperTokens.init({
apiDomain: 'http://localhost:3000',
apiBasePath: '/api/auth',
});
async function signIn(form) {
const res = await api.post('/auth/signin', form);
// {"status":"OK","user":{"email":"test@gmail.com","id":"de770ff7-4524-4108-994f-717c1d12bec4","timeJoined":1650956757303}}
// the set-cookie headers are also present, and cookies are saved correctly
const attemptRefreshingSession = await SuperTokens.attemptRefreshingSession();
const doesSessionExist = await SuperTokens.doesSessionExist()
console.log(attemptRefreshingSession, doesSessionExist); // false, false
}
rp
04/26/2022, 7:56 AMattemptRefreshingSession
and doesSessionExist
keep returning false
ts
const api = axios.create({ baseURL: '/api', timeout: 5_000 });
SuperTokens.addAxiosInterceptors(api);
SuperTokens.init({
apiDomain: 'http://localhost:3000',
apiBasePath: '/api/auth',
});
async function signIn(form) {
const res = await api.post('/auth/signin', form);
// {"status":"OK","user":{"email":"test@gmail.com","id":"de770ff7-4524-4108-994f-717c1d12bec4","timeJoined":1650956757303}}
// the set-cookie headers are also present, and cookies are saved correctly
const attemptRefreshingSession = await SuperTokens.attemptRefreshingSession();
const doesSessionExist = await SuperTokens.doesSessionExist()
console.log(attemptRefreshingSession, doesSessionExist); // false, false
}
yzs
04/26/2022, 8:33 AMDEBUG: com.supertokens
SUPERTOKENS_DEBUG: '1'
rp
04/26/2022, 8:50 AMyzs
04/26/2022, 9:05 AMYou are using SuperTokens Community
SuperTokens Core version: 3.12.1
Plugin Interface version: 2.13.0
Database Plugin name: postgresql
Database Plugin version: 1.15.0
Java version: OpenJDK 15.0.1
Installation directory: /usr/lib/supertokens
rp
04/26/2022, 10:22 AMyzs
04/26/2022, 10:28 AMrp
04/26/2022, 10:29 AMyzs
04/26/2022, 10:30 AMrp
04/26/2022, 10:31 AMyzs
04/26/2022, 10:32 AMrp
04/26/2022, 10:32 AMyzs
04/26/2022, 10:33 AMrp
04/26/2022, 10:33 AMyzs
04/26/2022, 10:33 AMrp
04/26/2022, 10:34 AMyzs
04/26/2022, 10:36 AMrp
04/26/2022, 10:36 AMyzs
04/26/2022, 10:36 AMrp
04/26/2022, 10:37 AMyzs
04/26/2022, 10:37 AMrp
04/26/2022, 10:37 AMyzs
04/26/2022, 10:39 AMrp
04/26/2022, 10:39 AMyzs
04/26/2022, 10:39 AMrp
04/26/2022, 10:40 AMyzs
04/26/2022, 10:40 AMrp
04/26/2022, 10:40 AMyzs
04/26/2022, 10:41 AMrp
04/26/2022, 10:42 AMyzs
04/26/2022, 10:42 AMrp
04/26/2022, 10:42 AMyzs
04/26/2022, 10:44 AMrp
04/26/2022, 10:48 AMyzs
04/26/2022, 10:50 AMrp
04/26/2022, 10:51 AMyzs
04/26/2022, 10:52 AMbaseURL : '/api'
instead of baseURL: 'http://localhost:3000/api'
rp
04/26/2022, 10:53 AMyzs
04/26/2022, 10:53 AMrp
04/26/2022, 10:53 AMyzs
04/26/2022, 10:53 AMrp
04/26/2022, 10:53 AMyzs
04/26/2022, 10:54 AMrp
04/26/2022, 10:54 AM