feat: Allow Parse.Session.current on expired session token instead of throwing error (#8722)

BREAKING CHANGE: `Parse.Session.current()` no longer throws an error if the session token is expired, but instead returns the session token with its expiration date to allow checking its validity
This commit is contained in:
Diamond Lewis
2023-12-25 13:40:49 -06:00
committed by GitHub
parent a22f095a47
commit f9dde4a9f8
2 changed files with 30 additions and 1 deletions

View File

@@ -342,7 +342,7 @@ const handleRateLimit = async (req, res, next) => {
export const handleParseSession = async (req, res, next) => {
try {
const info = req.info;
if (req.auth) {
if (req.auth || req.url === '/sessions/me') {
next();
return;
}