From 817e3afc4815241c99194c3e9b90229002e9a581 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Wed, 30 Apr 2025 12:11:38 +0000 Subject: [PATCH] feat: Update endpoint signup --- endpoints/signup.post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/signup.post.py b/endpoints/signup.post.py index 77e4d09..13a75b7 100644 --- a/endpoints/signup.post.py +++ b/endpoints/signup.post.py @@ -45,6 +45,6 @@ async def signup( # Return token directly after registration return { "message": "User created successfully", - "access_token": create_access_token({"sub": new_user.id}), + "access_token": create_access_token({"sub": new_user.id, "email": new_user.email}), "token_type": "bearer" }