diff --git a/resolvers/auth.py b/resolvers/auth.py index 73ad4f14..eabd6479 100644 --- a/resolvers/auth.py +++ b/resolvers/auth.py @@ -112,7 +112,7 @@ async def register(_, _info, email: str, password: str = "", username: str = "") if not password: user = await auth_send_link(_, _info, email) - return user + return {"user": user} @mutation.field("sendLink") diff --git a/schema.graphql b/schema.graphql index d882b7c2..863d20e6 100644 --- a/schema.graphql +++ b/schema.graphql @@ -154,7 +154,7 @@ type Mutation { # auth refreshSession: AuthResult! - registerUser(email: String!, password: String, username: String): User! + registerUser(email: String!, password: String, username: String): AuthResult! sendLink(email: String!): Result! confirmEmail(code: String!): AuthResult!