Hi All,
I am trying create Node.js function in GCP (without express just normal http function as shown below)
const jwksRsa = require(‘jwks-rsa’);
const jwt = require(‘express-jwt’);
const checkJwt = jwt({
provided by the JWKS endpoint.
secret: jwksRsa.expressJwtSecret({
cache: true,
rateLimit: true,
jwksRequestsPerMinute: 5,
jwksUri: added
}),
// Validate the audience and the issuer.
audience: ‘addedi’,
issuer: added
,
algorithms: added
});
exports.sampleFunctionAuth = (req, res, checkJwt) => {
res.send(“Hello”);
};
how to call checkJwt function ?
any code snippet if possible ?
It’s not working in gcp function . Can any one help me with this .
Thanks and Regards,
Tapas