Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
pvfarooq committed Sep 4, 2021
2 parents 3bc19f8 + a7549fc commit d6828d0
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
# tfora_social_auth

`https://github.com/pvfarooq/tfora_social_auth#readme`
##### Easy django rest auth integration for social applications. (currently supports Google and Facebook)

### Installation

`pip install tfora-social-auth
`
###### INSTALLED_APPS = [


` 'tfora_social_auth'
`

###### ]

`python manage.py migrate`

###### in urls

`from tfora_social_auth.views import (
GoogleSocialAuthView,
FacebookSocialAuthView
)`

`path('social/google/', GoogleSocialAuthView.as_view()),
`

`path('social/facebook/', FacebookSocialAuthView.as_view()),
`

### For Google login

###### POST with "auth_token".

###### Send an "idtoken" as from google to get user information

### For Facebook login

###### POST with "auth_token".

###### Send an access token as from facebook to get user information

0 comments on commit d6828d0

Please sign in to comment.