Authentication is the most common part in any application. You can implement your own authentication system or use one of the many alternatives tha...
For further actions, you may consider blocking this person and/or reporting abuse
Nice article, and surprisingly similar to my video - youtu.be/OdyXIi6DGYw
@alex Pliutau Nice video anyway ;)
You can use JWT for protected your endpoints, in the function oauthGoogleCallback when the login is succeeded you can create the user in your DB and generate the token and return to the user.
JWT: github.com/dgrijalva/jwt-go
So it's okay to get tokens from 3rd party, read user's email from them, add user to database, generate my own tokens, with payload I need, and send them to the client? I thought that it's necessary to send 3rd party's tokens to the client, because they have their own expiration time.