Well i found a solution with the users query :
const axiosInstanceForNativeAPI = axios.create({ baseURL: ENDPOINT_URL, headers: { Authorization: ADMIN_TOKEN_FOR_NATIVE_API }, }); export const getUserByEmail = email => axiosInstanceForNativeAPI.get(`/users?searchBy=email&query=${email}`); export const getUserByUsername = username => axiosInstanceForNativeAPI.get(`/users?searchBy=username&query=${username}`);Invalid csrf token and Failed login attemp
-
I have successfully been able to bind my domain to my nodebb installation , but upon trying to login to my nodebb install via the domain name , I get errors like :
Failed login attempt, please try again. Forbidden
AND
invalid csrf token
Login Unsuccessful
We were unable to log you in, likely due to an expired session. Please try againHow do I get rid of these errors and get login to work smoothly?
nodebb version : 1.10.0
nodebb-theme-vanilla version: 10.0.16 -
Check the url value in config.json and make sure it exactly matches the url at which you visit your site (including protocol).
-
Yes, it is same. But error is still there.