We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd80b81 commit a589419Copy full SHA for a589419
docs/customizing_token_claims.md
@@ -27,7 +27,7 @@ class MyTokenObtainPairOutSchema(Schema):
27
28
class MyTokenObtainPairSchema(TokenObtainPairInputSchema):
29
def output_schema(self):
30
- out_dict = self.dict(exclude={"password"})
+ out_dict = self.get_response_schema_init_kwargs()
31
out_dict.update(user=UserSchema.from_orm(self._user))
32
return MyTokenObtainPairOutSchema(**out_dict)
33
0 commit comments