custom auth strategy 403 error #12166
dani-hdr
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I Wanted to use custom auth strategy . but i get 403 forbidden error when i want to login on the client
this my code :
strategies: [
{
name: 'otp',
authenticate: async ({ payload, headers }) => {
and this is my fetch request
const res = await fetch(
${process.env.NEXT_PUBLIC_SERVER_URL}/api/customers/login
, {method: 'POST',
credentials:'include',
headers: {
'Content-Type': 'application/json',
Beta Was this translation helpful? Give feedback.
All reactions