https://supertokens.com/
Join Discord
Hi, I got a problem with apple login. Just to clarify my code with apple login works on a one enviro...
d

Diesel

almost 3 years ago
Hi, I got a problem with apple login. Just to clarify my code with apple login works on a one environment with a set of client-id, key-id and client-secret but on another environment with a different set of client-id, key-id and client-secret the same code fails and i try to understand why maybe you will have some info to share. Im using Go as my backend. The sign in with apple id seems to work but when im redirected it fails in the backend on
signinup
api with a panic error of
interface conversion: interface {} is nil, not string
I've attached the logs to the message, they are supertokens logs mix with some of my app. My guess is it could be my configuration is wrong but i dont see any problem with it.
log-panic-apple
d
r
s
  • 3
  • 43
  • 9
Hi, I am implementing supertokens in python fastapi. Now I am at the point where I am trying to depl...
c

chunkygoo.

almost 3 years ago
Hi, I am implementing supertokens in python fastapi. Now I am at the point where I am trying to deploy it to AWS lambda by wrapping my app around Mangum. However, I keep getting this error "RuntimeError: There is no current event loop in thread 'MainThread'". My app works fine locally, and I have dockerized it. I see that there is a section for AWS lambda in the docs but it is only for node. I also noticed that there is a framework called "awsLambda" in that example. But there isn't an option for the supertokens_python library. Is this not supported?
c
r
  • 2
  • 8
  • 9
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, ...
r

rezaamya

almost 3 years ago
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, if I detect that the session is expired on Backend, is there anyway to refresh it directly from there, instead of responding with "try refresh token" message to Frontend and getting request on auth/session/refresh? I know it is conceptually different from what SuperTokens is for, but I am trying to handle something else with described scenario.
r
r
  • 2
  • 12
  • 9
Hey, where can i see what cdi-version I use? Thanks
i

IaS1506

about 3 years ago
Hey, where can i see what cdi-version I use? Thanks
i
r
  • 2
  • 19
  • 9
Hi, I was trying to integrate SuperTokens auth api into my angular project by navigating through qui...
n

nisky_man

about 3 years ago
Hi, I was trying to integrate SuperTokens auth api into my angular project by navigating through quick setup guide in the documentation, however after adding express i noticed that my apped stopped building. I'm constantly getting getting errors such as the one in attachment. Could someone help me resolve this issue? Thanks in advance for any help/tips
n
r
  • 2
  • 8
  • 9
Is it possible to have the users in your own database? If no, do you recommend to have a relation to...
s

SammyK

about 3 years ago
Is it possible to have the users in your own database? If no, do you recommend to have a relation to the supertokens user, from your own database?
s
r
  • 2
  • 1
  • 9
Last question for today 😅, how can I configure my SMTP with username/password credentials ? I can't...
b

binouse

about 3 years ago
Last question for today 😅, how can I configure my SMTP with username/password credentials ? I can't find a way to give the username
b
r
a
  • 3
  • 10
  • 9
Hi, How can I rewrite the Set-Cookie to a custom header using the python SDK? I used this example fo...
l

Luca

about 3 years ago
Hi, How can I rewrite the Set-Cookie to a custom header using the python SDK? I used this example for node: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-localstorage/api-server/index.ts But how can i access the response in python (fastapi)? Here is my code:
python
def override_session_functions(oi: RecipeInterface):
    original_create_new_session = oi.create_new_session
    original_refresh_session = oi.refresh_session
    original_get_session = oi.get_session

    async def create_new_session(request, user_id, access_token_payload, session_data, user_context):
        session = await original_create_new_session(request, user_id, access_token_payload, session_data, user_context)
        _update_headers_in_request(request)
        return session

    async def refresh_session(request, user_context):
        _update_headers_in_request(request)
        session = await original_refresh_session(request, user_context)
        _update_headers_for_response(...) # How to get response to provide it here?
        return session

    oi.create_new_session = create_new_session

    return oi
l
r
  • 2
  • 4
  • 9
Question about generating a JWT for Firebase
d

dleangen

about 3 years ago
Question about generating a JWT for Firebase
d
r
  • 2
  • 19
  • 9
I have created a GitHub project. In exchange for all your help, my intent is to provide an article w...
d

dleangen

about 3 years ago
I have created a GitHub project. In exchange for all your help, my intent is to provide an article with a working demo for Angular/Firebase using SuperTokens so others can refer to it. However, the demo is not yet working. There are some issues with Sessions that I am unable to figure out. Here is the link: https://github.com/dleangen/supertokens-demo-1/tree/supertokens-ThirdPartyEmailPassword
d
r
  • 2
  • 80
  • 9
Previous899091Next

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