I have two applications using the same backend. Both frontend applications uses different client IDs. what is the best way to go about verifying access tokens for both frontend applications. Below is the basic structure of what I have.
const OktaJwtVerifier = require('@okta/jwt-verifier');
const oktaJwtVerifier = new OktaJwtVerifier({
issuer: process.env.OKTA_ISSUER,
clientId: process.env.OKTA_CLIENT_ID
});
const oktaToken = await oktaJwtVerifier.verifyAccessToken(accessTokenString,[
process.env.OKTA_CLIENT_ID,
]);
Is there a way to send in an array of issuer
and clientId
? The objective is to verify access tokens coming generated from two applications APP X and APP Y, that is, clientId
X
and clientId
Y