Passwordless auth in nodejs

I have a React and Express app and a NestJS app. I need to use passwordless authentication. When I create a new access token (by calling /oauth /token) an opaque access token is returned. Then when I call my API endpoints, I set the authentication header (Authorization: Bearer {access_token}). Since the access token is opaque, this token is not valid in my API (I expect a JWT token). How to solve this problem?

Hi @perevezenzev,

Welcome to the Community!

You need to add your API as the audience. Check out this doc:

If you haven’t yet registered your APIs, you can do that following this doc:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.