You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try any endpoints on api/auth
i get this error and i cant fix it
tried deffrent actions like signin ,signup,session,providers all will get same error
Error text
<-- POST /api/auth/providers
[auth][error] UnknownAction: Cannot parse action at /api/auth/providers. Read more at https://errors.authjs.dev#unknownaction
at parseActionAndProviderId (/mnt/F/myhonoserver/node_modules/.pnpm/@auth+core@0.37.4/node_modules/@auth/core/lib/utils/web.js:94:19)
at <anonymous> (/mnt/F/myhonoserver/node_modules/.pnpm/@auth+core@0.37.4/node_modules/@auth/core/lib/utils/web.js:25:40)
my code at app.ts
`
const app = new Hono<{ Bindings: CloudflareBindings }>();
when i try any endpoints on api/auth
i get this error and i cant fix it
tried deffrent actions like signin ,signup,session,providers all will get same error
Error text
my code at app.ts
`
const app = new Hono<{ Bindings: CloudflareBindings }>();
connectDB()
app
.use('', logger(), prettyJSON(), cors({
origin: '',
allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
}))
.use('/', timeout(5000))
.use(
'',
initAuthConfig((c) => ({
secret: process.env.AUTH_SECRET,
basePath: 'api/auth',//also without same problem
providers: [
Google({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET,
}),
],
}))
).use('/api/auth/', authHandler())
.use('/public/*', serveStatic({ root: '../public' }))
.route("/api", api)
.get('/', clientRoute)
export default app;
export type ApiRoutes = typeof api
`
i tried to so many things like change base path or remove it .
The text was updated successfully, but these errors were encountered: