https://supertokens.com/
Join Discord
Is it true, that ``createNewSession`` get's called before ``emailPasswordSignUpPOST`` upon registrat...
u

[Manicraft1001]

about 3 years ago
Is it true, that ``createNewSession`` get's called before ``emailPasswordSignUpPOST`` upon registration? I wanted to store a user in the db using ``emailPasswordSignUpPOST`` and store the information in the session using ``createNewSession``. Weirdly, this illustrations tells the opposite behaviour I am having: https://supertokens.com/docs/thirdpartyemailpassword/architecture
u
r
  • 2
  • 16
  • 7
How to get user id client-side
l

lavenderlav

about 3 years ago
How to get user id client-side
l
r
  • 2
  • 40
  • 7
hi, i'm having a hard time getting 'supertokens-website' to work, help please 😅 `attemptRefreshing...
y

yzs

about 3 years ago
hi, i'm having a hard time getting 'supertokens-website' to work, help please 😅
attemptRefreshingSession
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
}
y
r
  • 2
  • 84
  • 7
<@!498057949541826571> Looking to move from auth0 completely to supertokens.
h

howmuchrent

about 3 years ago
@User Looking to move from auth0 completely to supertokens.
h
a
  • 2
  • 1
  • 7
Trying to make a request to my backend but getting back unauthorized. I understand cookies are sent ...
p

pepegc

about 3 years ago
Trying to make a request to my backend but getting back unauthorized. I understand cookies are sent automatically? I previously successfully received the cookies in the response headers of
signup/code/consume
. Also using
'Access-Control-Allow-Credentials': true
on my request to the backend. What am I missing? After receiving the cookies from
signup/code/consume
I should see the cookies on dev tools>storage>cookies, correct? because I don't. Btw, I'm using
fetch
, not
axios
p
r
  • 2
  • 63
  • 7
Bonsoir 😀 Is it possible to use it with Appsmith, the open source internal tool builder ? knowing t...
s

sao360

about 3 years ago
Bonsoir 😀 Is it possible to use it with Appsmith, the open source internal tool builder ? knowing that we cannot install external library on Appsmith
s
r
  • 2
  • 18
  • 7
What would be the next step?
d

Deleted User

about 3 years ago
What would be the next step?
d
p
  • 2
  • 56
  • 7
Has anyone successfully setup supertokens with nestjs + graphql? I've had no trouble setting it up f...
v

Version467

about 3 years ago
Has anyone successfully setup supertokens with nestjs + graphql? I've had no trouble setting it up for nestjs without graphql, but I'm not able to adapt the supertokens graphql guide to work with the nestjs grapqhl module.
v
r
  • 2
  • 11
  • 7
Hi guys, How can I change the texts like "Sign in"... Etc ?
u

__ainar__

over 3 years ago
Hi guys, How can I change the texts like "Sign in"... Etc ?
u
s
r
  • 3
  • 4
  • 7
Hello 👋 I'm self hosting supertokens using the following docker image: `registry.supertokens.io/su...
h

hobosapienz

9 months ago
Hello 👋 I'm self hosting supertokens using the following docker image:
registry.supertokens.io/supertokens/supertokens-postgresql:9.0.2
Everything works fine locally and on a VPS server with an IPv4 address. However, I am now trying out the set up on a server that only has an IPv6 address and I can not pull the image because it seems like the registry does not support IPv6. Are you aware of this? Is there a plan for it to support IPv6 or am I forced to find another way around this?
h
r
  • 2
  • 4
  • 6
Previous666768Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by