lynndylanhurley / lynndylanhurley/devise_token_auth

How to add custom routes to devise auth token passwords controller.

Open
#1,245 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
3.6k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

i want to add some routes to passwords controller like given below

post 'api/auth/password/verify_code', to: 'api/users/passwords#verify_code'
post 'api/auth/password/change_password', to: 'api/users/passwords#change_password'

i am unable to do that.
i have tried following syntex given in a [post](https://medium.com/@spqpad/custom-uniqueness-constraints-in-rails-with-devise-token-auth-d5a94b107f46) for routes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the application's route declarations and the Devise token authentication passwords controller entry point mentioned in the issue. Review how the existing password routes are defined, then determine what project-supported route extension is needed for verify_code and change_password; done means both endpoints are correctly routed and their behavior is documented or verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.