Arti
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)
leandergan
chunkygoo.
abhisheksachdeva
third_party_user_id
sessions
binouse
alfreddohnani
joel04425
cg.vols
tomita0022
Error: SuperTokens core threw an error for a POST request to path: '/recipe/accountlinking/user/primary' with status code: 402 and message: Account linking feature is not enabled for this app. Please contact support to enable it.
Sekai
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).