[Django]-Django-rest-auth google social auth by access token

3šŸ‘

Itā€™s hard to pin point the error since you did not include the rest of your codes. The error simply means it cannot find the url with name ā€˜redirectā€™. So there are 2 things you can check:

urlpatterns = [
    ...,
    url(r'^rest-auth/', include('rest_auth.urls'))
]

Under ā€œAPIs & authā€ go to ā€œCredentialsā€ and create a new Client ID.
Probably you will want a ā€œWeb applicationā€ Client ID. Provide your
domain name or test domain name in ā€œAuthorized JavaScript originsā€.
Finally fill in http://127.0.0.1:8000/accounts/google/login/callback/
in the ā€œAuthorized redirect URIā€ field. You can fill multiple URLs,
one for each test domain. After creating the Client ID you will find
all details for the Django configuration on this page.

šŸ‘¤Nathan Do

Leave a comment