Questions tagged [devise-token-auth]

Token-based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth. Use this tag for questions related to Devise Token Auth.

Token-based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth. Use this tag for questions related to Devise Token Auth.

136 questions
0
votes
1 answer

How to redirect to login page/ or making user login successful after confirm email in devise token auth

I am using devise token auth with React frontend and now I am making user confirmable through email. Email is being sent but somehow it generates a wrong URL. The URL that is generated…
0
votes
1 answer

valid_token? returns True even if access-token is not valid

I am using 'devise_token_auth' gem with mongo backend and when I try to check if token is valid with valid_token?(access_token,client) : it returns True no matter what the access_token is. Please guide me through this. *note: If I enter wrong client…
0
votes
1 answer

Not getting an access-token back in RSpec request response

Rails 6.0.0 Ruby 2.6.3 gem 'rspec-rails', '~> 3.8.2' gem 'devise_token_auth', '~> 1.1.3' (Default setup) Everything appears to be working fine with the exception of, my rspec request responses don't contain an access-token. When inspect, I get [1]…
Garrett Davis
  • 339
  • 2
  • 11
0
votes
2 answers

Devise Token Auth installation: default routing settings causing error

From a clean create-repack-app install. I add the following to my Gemfile then run bundle: gem 'devise_token_auth' Then I run: rake db:create rails g devise_token_auth:install rake db:migrate Databases (dev and test) are created and ruby files…
aarona
  • 35,986
  • 41
  • 138
  • 186
0
votes
1 answer

How do I use ng2-file-upload with devise token auth?

I am currently trying to use the ng2-file-upload along with devise token auth.: https://devise-token-auth.gitbook.io/devise-token-auth/conceptual. File uploader currently handles the http request directly and hence, I did not use with angular token…
Venomoustoad
  • 1,203
  • 1
  • 14
  • 38
0
votes
1 answer

How do I update a user without a token while using Devise token Auth?

As a part of my application, when I send an invitation out to other users, I need to set a bunch of parameters for the newly created user before they even sign into the application. So, before switching to DeviseTokenAuth(and rails api), I used…
Venomoustoad
  • 1,203
  • 1
  • 14
  • 38
0
votes
1 answer

How do I implement Devise with react frontend folder in my project?

My project is using Rails and jbuilder with a react redux frontend. I am having a hard time figuring out how to implement devise to work with react and redux. can you pease give me some guidance. How would the routes look? I am having a hard time…
0
votes
1 answer

uninitialized constant DeviseTokenAuth::Concerns::User::BCrypt

Using the devise_token_auth gem, I am making a rails-based API in which I am trying to reset my password using email. On opening the email with reset link, I get this Error: uninitialized constant DeviseTokenAuth::Concerns::User::BCrypt The code…
Aman Relan
  • 373
  • 1
  • 2
  • 12
0
votes
1 answer

devise token auth find user with password reset token

I'm using devise token auth and I'm setting up password reset process. When I click the reset link in the email, it has the url parameter reset_password_token=hK3yxC1zVZCbWL8WgqKM but when in the rails console I do 2.5.1 :004 >…
RM64
  • 59
  • 1
  • 6
0
votes
1 answer

Can't figure out how to update users with devise_token_auth gem

I'm working on a rails API that is meant to work with a VUE frontend. This is my first time working with rails as an API only. I'm familiar with using devise for user authentication in other rails apps. Our sign in works, same with logout. I can't…
Gold Masta
  • 695
  • 1
  • 10
  • 22
0
votes
1 answer

Rails api is not returning access-token and client to external url via devise token auth

I'm having an issue with devise_token_auth returning a client and access-token back to my front end. It works fine in my test environment and I get the expected results. But in my dev environment I am using a external url. This is the response I…
Jay
  • 928
  • 2
  • 7
  • 28
0
votes
1 answer

Is angular-token@6 compatible to angular@5 / ionic@3?

I'm using the ionic framework in version 3. At time of writing, ionic 4 is still in beta. To my understanding, ionic 3 is only compatible up to angular 5. I'm trying to add angular-token, which currently is at 6.0.4. A version 5 of angular-token…
fiedl
  • 5,667
  • 4
  • 44
  • 57
0
votes
1 answer

devise_token_auth how to access user.created_at

I'm using devise_token_auth on my Rails 5 api Currently, when I make a POST request to /auth/sign_in everything goes well, I get data looking like this: "data": { "id": 3, "email": "me@user.com", "name": null, "nickname": null, …
skpdm
  • 1,378
  • 2
  • 15
  • 31
0
votes
1 answer

devise_token_auth and rails 5.2.0 Compatibility

Hi i'm using devise_token_auth with rails 5.1.6 .When i updated my rails version to 5.2.1 so i can use acts_as_favoritor 2.1.0, i got the error in my elasticbeanstalk environment log: Column `tokens` of type ActiveRecord::Type::Json does not support…
0
votes
2 answers

device_token_auth token generation issue

I have 'device_token_auth' (0.1.36) gem for the token generation in my ROR web application. I am not much aware of the functionality of this gem. Suddenly an issue come as NoMethodError: undefined method `[]' for nil:NilClass And the backtrace…
shubham mishra
  • 1,183
  • 14
  • 21