Google Authentication using django and djoser
https://medium.com/@nitesht.calcgen/google-authentication-using-django-and-djoser-b0ef5f61a50b
#djoser
NOTE : Before we start make sure you have created the django project with simple-jwt configured.
GET http://127.0.0.1:8000/auth/o/google-oauth2/?redirect_uri=http://localhost:3000/
you will get a authorization_url
authorization_url をクリックするとGoogleの認証画面(アカウントを選ぶ)
GETのURLに入れたredirect_urlへ
POST http://127.0.0.1:8000/auth/o/google-oauth2/?state=''&code=''
google will provide you with the access and refresh token for authentication
ログインしたいときは都度、上のGET -> POSTを繰り返す
settings.pyのAUTHENTICATION_BACKENDS