79366086

Date: 2025-01-17 21:04:45
Score: 0.5
Natty:
Report link

I would suggest you use Google Identity Platform (via OAuth 2.0) to authenticate users, but you should not directly call Google’s Identity Platform API from your backend to generate JWT tokens.

Here are the recommended approaches:

Here are some helpful links:

  1. google-auth-library for Node.js

  2. Google OAuth2.0 Documentation

  3. Role-based access controls

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: KikoZam