https://supertokens.com/
Join Discord
Hey, I am using supertokens to setup authentication between website and chrome extension. When I lo...
k

kumar_ayush

over 2 years ago
Hey, I am using supertokens to setup authentication between website and chrome extension. When I login for the first time it works as expected. But after sometime, when the accessToken expires, and i try to get a request from server it says accessToken expired. Please use refresh token, but I am not seeing any refresh token in the cookie, I can only see sIdRefreshToken, sIRTFrontend, sFrontToken
k
r
  • 2
  • 4
  • 5
Hello hello ! 😁 We're using the node-express sdk We've been trying to override the infamous `"try ...
u

ulys8253

over 2 years ago
Hello hello ! 😁 We're using the node-express sdk We've been trying to override the infamous
"try refresh token"
401 error message to no avail. (The one returned by
verifySession
when a token has expired) The
SessionInit.errorHandlers.onUnauthorized
override method doesn't seem to be called for this error. We've tried writing a custom
verifySession
middleware for this only purpose (sad) but can't seem to find a way to overwrite the error message. Could you point us in the right direction please ? 🥹
u
r
  • 2
  • 8
  • 5
is in memory different from db (aside from not being permanent of course) because whenever i check i...
b

beemoe5

over 2 years ago
is in memory different from db (aside from not being permanent of course) because whenever i check if an email exists it always returns false even when i use the same dummy email i thought it only cleared when the supertokens core restarted
b
r
  • 2
  • 11
  • 5
Hi i've followed your tutorial to integrate Supertokens to NextJS. I've got a docker instance with a...
b

BRBT

over 2 years ago
Hi i've followed your tutorial to integrate Supertokens to NextJS. I've got a docker instance with a postgresql set up by database and so faar my login seems to be working. I would like to create a navbar that will show the user email address. So i know that i need to get the UserID with the Session and then make an API call to get it. But i can't figure out how to do it. Here's the code
js
import { useEffect } from 'react';
import Link from 'next/link'
import { EmailPasswordAuth } from 'supertokens-auth-react/recipe/emailpassword';
import Session from 'supertokens-auth-react/recipe/session';
import EmailPassword from "supertokens-node/recipe/emailpassword";
import supertokens from 'supertokens-node'
import { backendConfig } from '../config/backendConfig'

supertokens.init(backendConfig())
export default function Navbar() {
    useEffect( () => {
       Session.getUserId().then(userID => 
           EmailPassword.getUserById(userID).then( user =>
           console.log(user.email)
           )
       )
    }, [])
b
r
  • 2
  • 60
  • 5
I'm new to using third party auth providers and wanted to know whether this is how it works? Let's s...
x

xoldyckk

over 2 years ago
I'm new to using third party auth providers and wanted to know whether this is how it works? Let's say our app has a database entity profile which is the parent entity for many other entities that are used in the app. Do we post sign up do something like redirect the user to create profile page collect his information for app profile and save it to our database while referencing a unique field from supertokens session of the current user like user_id or user_email within the profile table so that the association between supertokens user and app profile is one to one and unique for every user?
x
r
  • 2
  • 12
  • 5
has anyone setup supertokens with digitalocean container registry?
c

Copani

over 2 years ago
has anyone setup supertokens with digitalocean container registry?
c
r
  • 2
  • 17
  • 5
Hey guys, Our requests to the self-hosted core `supertokens-postgresql:4.1` is throwing 500 errors f...
e

execreate

over 2 years ago
Hey guys, Our requests to the self-hosted core
supertokens-postgresql:4.1
is throwing 500 errors from time to time. The recipe is
passwordless
, URL path is
/v1/auth/signinup/code/consume
and if you dig into the supertokens-core container errors, it says:
javax.servlet.ServletException: io.supertokens.pluginInterface.exceptions.StorageQueryException: org.postgresql.util.PSQLException: ERROR: could not serialize access due to read/write dependencies among transactions
e
r
  • 2
  • 15
  • 5
`[Nest] 64803 - 10/08/2022, 10:37:13 AM ERROR [ExceptionHandler] Nest can't resolve dependencies ...
d

darkphoenix2704

almost 3 years ago
[Nest] 64803  - 10/08/2022, 10:37:13 AM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the AuthGuard (?). Please make sure that the argument Object at index [0] is available in the ProfileModule context.

Potential solutions:
- If Object is a provider, is it part of the current ProfileModule?
- If Object is exported from a separate @Module, is that module imported within ProfileModule?
  @Module({
    imports: [ /* the Module containing Object */ ]
  })
Receiving this error when using AuthGuard in nestjs. i followed exactly by the docs
d
r
  • 2
  • 7
  • 5
Does the react form take good care of security? Like SQL injection etc
c

chunkygoo.

almost 3 years ago
Does the react form take good care of security? Like SQL injection etc
c
p
  • 2
  • 2
  • 5
Using supertokens-python + flask. I'm using @verify_session(session_required=False). When the toke...
a

Alex

almost 3 years ago
Using supertokens-python + flask. I'm using @verify_session(session_required=False). When the token expires I get a 401. Is this desired behavoir?
a
r
  • 2
  • 11
  • 5
Previous969798Next

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