https://supertokens.com/
Join Discord
Hi, can anyone tell me how to verify the JWT token?
d

Deleted User

over 2 years ago
Hi, can anyone tell me how to verify the JWT token?
d
r
  • 2
  • 7
  • 12
<@498057949541826571> I have several google accounts. once I select google account when i am using l...
b

bian

over 2 years ago
@rp_st I have several google accounts. once I select google account when i am using login with google, I can't choose other google account anymore when I am trying to login again. is there any way to fix this?
b
r
s
  • 3
  • 59
  • 12
Hello guys! I'm trying to test protected endpoints using postman. Sign in request works well, I get ...
a

anton@shook.ltd

over 2 years ago
Hello guys! I'm trying to test protected endpoints using postman. Sign in request works well, I get status Ok and user data, but..no cookies are updated in the Postman itself..So my next request to the API gets "message": "unauthorised". Is there any setting that I need to set to allow cookies? Or should I downgrade to a specific version of Postman? (Postman for Mac Version 10.11.2)
a
r
  • 2
  • 2
  • 12
I am working on a frontend app talking to a supertokens backend and implementing OTP login with phon...
l

listmalarinn

over 2 years ago
I am working on a frontend app talking to a supertokens backend and implementing OTP login with phone works like a charm, I wanted to read the JWT in the client so I had to add the session recipe to the backend and also call session.init in my client, this worked also like a charm and I was able to read the JWT. However when I do not log in using phone and OTP, I still want to have a JWT session for anonymous users but the Session.getUserId() returns false Is there anything more to it for session based authentication other than just having Session.Init() in the recipes array in the client and also in the backend? BTW: just wanted to shout out that other than this, using supertokens has been so smooth
l
r
  • 2
  • 24
  • 12
On Clearing Cookies or Using incognito Mode in React Native Webview Android, SuperToken Session is e...
m

malikkhoja

over 2 years ago
On Clearing Cookies or Using incognito Mode in React Native Webview Android, SuperToken Session is expired. Can anyone help me here?
m
r
n
  • 3
  • 53
  • 12
Is there already a solution to using supertokens with tRPC? Thanks in andvance
c

codingtomato

over 2 years ago
Is there already a solution to using supertokens with tRPC? Thanks in andvance
c
r
t
  • 3
  • 5
  • 12
Hello again I would like to translate the emails that supertokens sends to our customers. I understa...
r

romixch

over 2 years ago
Hello again I would like to translate the emails that supertokens sends to our customers. I understand that I can change the content as described here: https://supertokens.com/docs/emailpassword/email-delivery/smtp/change-email-content But how do I know into which language I have to translate? I would be happy to get the language that users saw as they register in the browser.
r
j
p
  • 3
  • 21
  • 12
trying to access the dashboard
d

dhatguy

over 2 years ago
trying to access the dashboard
d
n
  • 2
  • 22
  • 12
Hi! The Dashboard is pretty cool, but I have a question about how it is intended to be used. It is ...
d

dleangen

over 2 years ago
Hi! The Dashboard is pretty cool, but I have a question about how it is intended to be used. It is served by the backend, and the backend is protected by CORS. It looks like the Dashboard is intended to be accessed directly via the browser, and not through an API call. However, if I access directly from my browser, then no origin is provided with the request, which means that it gets rejected by CORS. I tested by disabling CORS, and can access the Dashboard as expected. I'm not sure how to resolve this issue because I can't seem to find a way to disable CORS just for that single route (unless I am misunderstanding how the configuration works). Here is my CORS config, **which is general to all routes due to the use of `app.use(middleware())`**:
SuperTokens.init(SuperTokensInitConfig);
admin.initializeApp();

const app = express();

const whitelist: string[] = [
  websiteDomain,
  'http://localhost:4201',
  'http://localhost:4202',
  'http://localhost:4203',
  ... etc.
];

app.use(cors({
  origin: function(origin, callback) {
    if (origin && whitelist.indexOf(origin) !== -1) {
      callback(null, true);
    } else {
      callback(new Error(`Origin ${origin} not permitted due to CORS policy`));
    }
  },
  allowedHeaders: ['content-type', ...SuperTokens.getAllCORSHeaders()],
  credentials: true,
}));

app.use(middleware());
app.use(errorHandler());

export default app;
d
r
n
  • 3
  • 24
  • 12
Hi, I want to send magic link in the mail using different website domain. So is there any way in bac...
a

alen_george

over 2 years ago
Hi, I want to send magic link in the mail using different website domain. So is there any way in backend to fetch any website domain and send magic link using that particular domain? And also any way to send additional values from frontend to backend middleware API's.
a
n
r
  • 3
  • 333
  • 12
Previous424344Next

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