Use of Oauth2 Google external (TortoiseBaseOAuthAccountModel) and TortoiseBaseUserModel #618
-
Hi, I'm thinking of use the authentication for user with e-mail and password, the normal flow, and at same time the option to authentication with Google sign in. I'm using Tortoise, and I have class How can I make the two work together? I need two tables? Or I can create optional fields in Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, you need both. You'll have two tables:
You have a complete example here: https://frankie567.github.io/fastapi-users/configuration/oauth/#tortoise-orm_1 |
Beta Was this translation helpful? Give feedback.
-
Thank you very much!! |
Beta Was this translation helpful? Give feedback.
Yes, you need both. You'll have two tables:
You have a complete example here: https://frankie567.github.io/fastapi-users/configuration/oauth/#tortoise-orm_1