Set Cache-Control: no-store
This commit is contained in:
parent
7b81b4f672
commit
63db32236e
4 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ export function authorizationHandler({ provider, rateLimit: rateLimitConfig }: A
|
|||
|
||||
// Define the handler
|
||||
router.all("/", async (req, res) => {
|
||||
res.setHeader('Cache-Control', 'no-store');
|
||||
|
||||
let client_id, redirect_uri;
|
||||
try {
|
||||
const data = req.method === 'POST' ? req.body : req.query;
|
||||
|
|
|
|||
|
|
@ -63,6 +63,8 @@ export function clientRegistrationHandler({
|
|||
}
|
||||
|
||||
router.post("/", async (req, res) => {
|
||||
res.setHeader('Cache-Control', 'no-store');
|
||||
|
||||
let clientMetadata;
|
||||
try {
|
||||
clientMetadata = OAuthClientMetadataSchema.parse(req.body);
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ export function revocationHandler({ provider, rateLimit: rateLimitConfig }: Revo
|
|||
router.use(authenticateClient({ clientsStore: provider.clientsStore }));
|
||||
|
||||
router.post("/", async (req, res) => {
|
||||
res.setHeader('Cache-Control', 'no-store');
|
||||
|
||||
let revocationRequest;
|
||||
try {
|
||||
revocationRequest = OAuthTokenRevocationRequestSchema.parse(req.body);
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ export function tokenHandler({ provider, rateLimit: rateLimitConfig }: TokenHand
|
|||
router.use(authenticateClient({ clientsStore: provider.clientsStore }));
|
||||
|
||||
router.post("/", async (req, res) => {
|
||||
res.setHeader('Cache-Control', 'no-store');
|
||||
|
||||
let grant_type;
|
||||
try {
|
||||
({ grant_type } = TokenRequestSchema.parse(req.body));
|
||||
|
|
|
|||
Loading…
Reference in a new issue