#/admin redirecting me to /admin/login with payload-auth-plugin

1 messages · Page 1 of 1 (latest)

last chasm
#

does anyone have a working example with the website template for this plugin? https://authsmith.com/docs/plugins/payload/installation

I tried following it, but for some reason it redirects me back to /admin/login instead of /admin

Heres the logs:

GET /admin/login 200 in 51ms
 ○ Compiling /api/[...slug] ...
 ✓ Compiled /api/[...slug] in 604ms (4917 modules)
 GET /api/admin/oauth/authorization/google 302 in 1638ms
 GET /api/admin/oauth/callback/google?code=4%2F0AQSTgQGL8-VQPNFbCJgoO4Y5rW5jsm0sb8sMwZbsiRzI_rZHaJh75x4Ii8XlPmvruySlqw&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid&authuser=1&prompt=none 302 in 370ms
 GET /admin 307 in 815ms
 GET /admin/login 200 in 112ms
 ○ Compiling /_not-found ...
 ✓ Compiled /_not-found in 982ms (6080 modules)
 GET /api/users/me 200 in 1770ms
 GET /_next/static/chunks/app/(payload)/admin/%5B%5B...segments%5D%5D/chunk-IMEQ6NKQ.js.map 404 in 2125ms

Payload CMS auth plugin installation

shell flaxBOT
last chasm
#

Am I missing something?