To make authentication easy we will be using one app login
-
When the user clicks on login/signup, take the user to
API
https://auth.rajchandra.me?redirect_url=${your_redirect_url}
for example: https://auth.rajchandra.me?redirect_url=https://rajchandra.me
Note: Please use http/https in the redirect url
-
Here the user can select a login type - as of now only google login will be available
-
Once the login is completed the user will be redirected back to the redirect_url provided
What data does the app provide:
-
It sets two cookie
me_apps_access_token
andme_apps_user
with the jwt cookie and encoded userData -
The userdata object with basic user information are available on
localstorage
andcookie
-
You can use
atob
to descypt theme_apps_user
-
There is a problem with localstorage, you can't access them in subdomains
This app uses the following libraries:
- Bootstrap
- Google Oauth