#Hide `/api/access` route to the public

1 messages · Page 1 of 1 (latest)

quartz lintel
#

Hi, is there a way in payload v3 to disable this route except for development/admin user maybe? I was thinking of using a middleware to restrict access but maybe there is a simpler way

tender crestBOT
lavish solar
#

Use redirect from NextJS

quartz lintel
#

Well I'll just use that then, thanks!

tender crestBOT
quartz lintel
#

Actually, another thing, how can I authenticate the user in the middleware? Using the jwt strategy?

tender crestBOT