This project is a personal challenge that I developed in order to learn and to deal with the authentication library devise_token_auth. Remembering that the application was not configured for production and is intended only for development mode. Any further details can be found at Devise Token Auth Official Documentation
Ruby version | 3.0.0 |
Rails version | 6.1.3 |
Database | PostgreSQL |
git clone https://github.com/urieljuliatti/devise_api
cd devise_api
bundle install
rails server
One way to ensure its development is to combine it with the consumption of requests to guarantee the functioning and understanding of how the devise_auth_token works.
Requests necessarily need three key-values in the header, here they are:
accsss-token: | your-token |
uid: | your User email |
client: | the-client |
Note: These values tend to change according to the session, so it is necessary to change from time to time.
With that in mind, I made a Postman configuration file. You can get my json file from here: devise-api.postman_collection.json.
It is very important that you run the tests and verify the project's proficiency safely:
rspec
- 💬 You can ask me about anything at [email protected]