🐛 Ignore session information for JWTs generated for applications (#515)
This commit is contained in:
committed by
ericlinagora
parent
90876e0094
commit
12251fb617
@@ -22,7 +22,7 @@ const jwtPlugin: FastifyPluginCallback = async (fastify, _opts, next) => {
|
|||||||
const jwt: JwtType = await request.jwtVerify();
|
const jwt: JwtType = await request.jwtVerify();
|
||||||
|
|
||||||
// Verify the SID exists and is valid except tokens for the public link
|
// Verify the SID exists and is valid except tokens for the public link
|
||||||
if (!jwt.public_token_document_id) {
|
if (!jwt.public_token_document_id && !jwt.application_id) {
|
||||||
await gr.services.console.getClient().verifyJwtSid(jwt.sid);
|
await gr.services.console.getClient().verifyJwtSid(jwt.sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user