https://supertokens.com/
Join Discord
Are there any standard approaches to verifying the user in .NET?
w

willb

about 2 years ago
Are there any standard approaches to verifying the user in .NET?
w
r
  • 2
  • 23
  • 14
Hi, I'm trying to run the supertokens-core from my local system, it was running fine before, now it ...
v

vigneshkumar5238

about 2 years ago
Hi, I'm trying to run the supertokens-core from my local system, it was running fine before, now it is throwing this error.
What caused the crash: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `io.supertokens.config.CoreConfig` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('git update-index --skip-worktree modules.txt git update-index --skip-worktree settings.gradle git update-index --skip-worktree .idea/runConfigurations/CLI_Main.xml git update-index --skip-worktree .idea/compiler.xml git update-index --skip-worktree .idea/vcs.xml

prefix=`./utils/project-prefix`
url=https://bitbucket.org/vrai-labs if [[ $1 = "--ssh" ]] then url=git@bitbucket.org:vrai-labs fi
if [ $prefix == "supertokens" ]; then')
 at [Source: (File); line: 4, column: 1]
I'm using this command,
java -classpath "./core/*:./plugin-interface/*:./ee/*" io.supertokens.Main ./ DEV
v
r
  • 2
  • 6
  • 14
with socket io
r

rp_st

about 2 years ago
How can I use supertokens with socket io?
r
  • 1
  • 2
  • 14
refreshing of a session
r

rp_st

about 2 years ago
How can I send a refresh token to the server when I receive a 401 error with the message "try refresh token"?
r
  • 1
  • 2
  • 14
Hello, I'm using FastAPI and my goal is to implements by myself the route /auth/signup because I wan...
a

Arti

over 2 years ago
Hello, I'm using FastAPI and my goal is to implements by myself the route /auth/signup because I want it to be visible on the open-api swagger. Currently I don't have a front-end, so I'm only using the swagger. I'm struggling with get_session and create_new_session. After I log-in, get_session always returns None.
py
class UserRegisterModel(BaseModel):
    email: str
    password: str


@router.post('/register')
async def register_user(
    request: Request,
    user: UserRegisterModel,
):
    email_password_quertier = Querier.get_instance('emailpassword')
    path = NormalisedURLPath('/recipe/signup')
    response = await email_password_quertier.send_post_request(path, user.dict())
    if response.get('status') == 'OK':
        user_id = response['user']['id']
        session = await create_new_session(
            request,
            user_id
        )
        return True
    raise Exception('user exists')

@router.post('/like_comment') 
async def like_comment(request: Request):
    session = await get_session(request, session_required=False)

    if session is None:
        raise Exception("Should never come here")
    user_id = session.get_user_id()

    print(user_id)
a
r
  • 2
  • 17
  • 14
``` backend_2 | 2023/03/16 13:36:52 http: response.WriteHeader on hijacked connection from g...
r

rob197

over 2 years ago
backend_2         | 2023/03/16 13:36:52 http: response.WriteHeader on hijacked connection from github.com/supertokens/supertokens-golang/supertokens.SendNon200Response (utils.go:188)
backend_2         | 2023/03/16 13:36:52 http: response.Write on hijacked connection from github.com/supertokens/supertokens-golang/supertokens.(*basicWriter).Write (doneWriter.go:69)
r
r
s
  • 3
  • 21
  • 14
On the roles and permissions recipie, is there support for associating roles with another object? Fo...
p

pitchash

over 2 years ago
On the roles and permissions recipie, is there support for associating roles with another object? For example, on our system users belong to a number of teams, and have a role within that team so the same roles and permissions need to be duplicated for each team. Is there a way to support that within the recipe or would I have to build it entirely separately?
p
r
  • 2
  • 50
  • 14
Hi, did anyone manage to secure command line applications using SSO with Supertokens ?
a

Alex1s

over 2 years ago
Hi, did anyone manage to secure command line applications using SSO with Supertokens ?
a
r
  • 2
  • 14
  • 14
I'm logged out after using supertokens with multiple api endpoints ( https://supertokens.com/docs/pa...
c

crro

over 2 years ago
I'm logged out after using supertokens with multiple api endpoints ( https://supertokens.com/docs/passwordless/common-customizations/sessions/multiple-api-endpoints)
c
r
  • 2
  • 217
  • 14
```# npm audit report qs 6.7.0 - 6.7.2 Severity: high qs vulnerable to Prototype Pollution - https...
c

chunkygoo.

over 2 years ago
# npm audit report

qs  6.7.0 - 6.7.2
Severity: high
qs vulnerable to Prototype Pollution - https://github.com/advisories/GHSA-hrpp-h998-j3pp
fix available via `npm audit fix --force`
Will install supertokens-node@2.5.0, which is a breaking change
node_modules/qs
  body-parser  1.19.0
  Depends on vulnerable versions of qs
  node_modules/body-parser
    supertokens-node  >=3.0.0
    Depends on vulnerable versions of body-parser
    node_modules/supertokens-node

3 high severity vulnerabilities
c
r
  • 2
  • 7
  • 14
Previous353637Next

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