Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use devise_token_auth for authentication #33

Closed
BosEriko opened this issue Jan 3, 2020 · 2 comments
Closed

Use devise_token_auth for authentication #33

BosEriko opened this issue Jan 3, 2020 · 2 comments
Assignees

Comments

@BosEriko
Copy link
Member

@BosEriko BosEriko commented Jan 3, 2020

No description provided.

@BosEriko BosEriko self-assigned this Jan 3, 2020
@BosEriko

This comment has been minimized.

Copy link
Member Author

@BosEriko BosEriko commented Jan 4, 2020

This is the tutorial that I'm currently following
https://learnetto.com/tutorials/react-devise-token-auth

@BosEriko

This comment has been minimized.

Copy link
Member Author

@BosEriko BosEriko commented Jan 4, 2020

Register
curl http://localhost:3001/auth --data "email=test123@example.com&password=password"

Log In
curl http://localhost:3001/auth/sign_in --data "email=test123@example.com&password=password"

BosEriko added a commit that referenced this issue Jan 4, 2020
# Story Title

[Use devise_token_auth for authentication](#33)

# Changes made

- Add the `devise_token_auth` gem to the Gemfile
- Add `omniauth` gems to the Gemfile
- Update CORS to accept cross-server requests
- Disable `change_headers_on_each_request` for `devise_token_auth`


# How does the solution address the problem

This PR will add an API authentication using `devise_token_auth`.
@BosEriko BosEriko closed this Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.