To create a new account for my software, users signup through a page within our app. We wanted to keep this here to ensure we added some business logic around signing up (instead of using the user signup hosted page on auth0).
After the user signs up, I wanted to create their user account via ruby api (working), then log them right into the app, so they can immediately get started using our tool.
I am trying to create the user, then log them in with the ruby API, so I can pass this token back to my frontend for ongoing use and it’s not working.
Getting this error:
On ruby side:
I have triple checked that the credentials are correct and work through the auth0 hosted login page.
- What am I doing wrong
- Is there a better way to create a user and return the token?
- I tried this on the frontend and got an error about grant_types
The goal here is to have the user use my app’s registration form, then create a user on auth0, and sign them right into our app.
Any help or recommendations on either how to best do this, or how to fix the issue with the Ruby library so I can get the users access_token would be much appreciated.