https://supertokens.com/
Join Discord
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
Hi, I'm trying to setup auth with my chrome extension, I've browsed past questions about this proble...
u

__doei__

almost 3 years ago
Hi, I'm trying to setup auth with my chrome extension, I've browsed past questions about this problem, and it seems the most straightforward solution is to use jwt with localstorage. But there's a couple things I'm still wondering: - I've tried setting the
cookieSameSite
option to none, and I can see that it is indeed set with the option, however, when launching request from the extension, the cookies are not there, why is that the case ? - If choosing to use the jwt with localstorage approach, does it mean that refresh the session does not work anymore ?
u
r
  • 2
  • 84
  • 12
Is serverless self hosting of Super Tokens advisable? I see it can be downloaded as a docker file or...
a

Antfere3

almost 3 years ago
Is serverless self hosting of Super Tokens advisable? I see it can be downloaded as a docker file or a binary. If I were to download either could I then deploy it to some cloud providers instance? If yes what instance hardware should I be targeting? I would likely need good long term storage for the database and some redundancy, besides that, is compute or memory important? Thanks in advance.
a
r
  • 2
  • 6
  • 12
hi, for our app we had to use the native http plugin from capacitor, which doesnt support intercept...
e

EdwinN1337

almost 3 years ago
hi, for our app we had to use the native http plugin from capacitor, which doesnt support interceptor... any example how to write custom logic to attach the cookies in the headers (for every request)?
e
r
  • 2
  • 11
  • 12
What is the recommended way for using supertokens in flutter... Since the flutter SDK is deprecated
s

sheyzi_einstein

about 3 years ago
What is the recommended way for using supertokens in flutter... Since the flutter SDK is deprecated
s
n
  • 2
  • 31
  • 12
Hello! We have a little problem about implementation of Supetokens on Ionic/Capacitor. In particular...
d

Deleted User

about 3 years ago
Hello! We have a little problem about implementation of Supetokens on Ionic/Capacitor. In particular about the native versions of it. Its like if the back-end side doesn't allow customScheme (ex: capacitor://app.id/home). After the basic implementation of docs we have this error on iOS: Unhandled Promise rejection: – "Please provide a valid domain name" Can some help me please? Thanks in advance!
d
r
+4
  • 6
  • 51
  • 12
Previous414243Next

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