Atticuszz / fastapi_supabase_template

👏fastapi deeply integrates with supabase,auth,curd postgresql,file upload ,etc , all in one😎,inspired by full stack fastapi postgresql
MIT License
83 stars 5 forks source link

Add OAuth Provider Login to Template #1

Closed 0xDeadcell closed 8 months ago

0xDeadcell commented 10 months ago

Hi,

Adding an optional OAuth Provider Login to the would be great, as you wouldn't have to store the password yourself and deal with the security concerns of it. Instead it might be better to optionally allow an OAuth provider (e.g., google, github) and store the auth/session token thru the database for future checks to see if a user is logged in.

Atticuszz commented 8 months ago

Hi,

Adding an optional OAuth Provider Login to the would be great, as you wouldn't have to store the password yourself and deal with the security concerns of it. Instead it might be better to optionally allow an OAuth provider (e.g., google, github) and store the auth/session token thru the database for future checks to see if a user is logged in.

good question,i tried to achieve it for a couple of weeks,but finally,i think the auth should be handled by supabase-js,fastapi only pays attention on access token to get who send the request