Auth0 Passwordless on React Native

Hi There!

I’m having some trouble if an react native password less login on android, on Ios it works just fine but on android i’m receiving 403 forbidden even if i try with the same e-mail in both devices.

const {
	access_token
} = await validateOTPCode({
	grant_type: Env.AUTH0_GRANT_TYPE,
	username: email,
	realm: "email",
	otp: value,
	client_id: Env.AUTH0_CLIENT_ID,
	client_secret: Env.AUTH0_CLIENT_SECRET,
	audience: Env.AUTH0_AUDIENCE,
	scope: "offline_access"
}).unwrap();

This is the request that im doing, data is valid since it works on ios, not sure why is not working on android since im receive successful logs on auth0 dashboard

1 Like

Hi @josef.elbez,

Welcome to the Auth0 Community!

Are you seeing any errors in the dashboard? Forbidden errors generally mean you have the right credential, but you aren’t allowed to do what you are trying to do.

What are you passing as the grant type here? Is the audience authorized for the application? Are refresh tokens enabled?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.