Skip to content

Commit a589419

Browse files
committed
chores(): updated doc to address #49 issue
1 parent fd80b81 commit a589419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/customizing_token_claims.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MyTokenObtainPairOutSchema(Schema):
2727

2828
class MyTokenObtainPairSchema(TokenObtainPairInputSchema):
2929
def output_schema(self):
30-
out_dict = self.dict(exclude={"password"})
30+
out_dict = self.get_response_schema_init_kwargs()
3131
out_dict.update(user=UserSchema.from_orm(self._user))
3232
return MyTokenObtainPairOutSchema(**out_dict)
3333

0 commit comments

Comments
 (0)