Giter VIP home page Giter VIP logo

Comments (6)

lynndylanhurley avatar lynndylanhurley commented on August 26, 2024

Thanks @smarquez1 - I don't have much experience with mongoid, but I'll take a look and see what it takes to add support. Please continue to post issues as you find them.

from devise_token_auth.

jasonswett avatar jasonswett commented on August 26, 2024

I'm also using Rails::API, but not Mongoid. I didn't realize the SetUserByToken concern was supposed to be added to ApplicationController automatically. That would have been helpful, as it wasn't obvious to me that that concern needed to be there at all, and I only discovered the need to add it after a lot of digging.

Might it make sense to create a separate issue for including the SetUserByToken concern in a Rails::API ApplicationController, since that doesn't seem to have anything to do with Mongoid? I'd be willing to take a crack at the actual implementation.

from devise_token_auth.

andimal avatar andimal commented on August 26, 2024

@jasonswett + @smarquez1: thankyouthankyouthankyou!

ApplicationController << include DeviseTokenAuth::Concerns::SetUserByToken for rails-api

from devise_token_auth.

scanferla avatar scanferla commented on August 26, 2024

+1

ApplicationController << include DeviseTokenAuth::Concerns::SetUserByToken for rails-api

from devise_token_auth.

booleanbetrayal avatar booleanbetrayal commented on August 26, 2024

accepting PRs for this if anyone would like to implement this feature

from devise_token_auth.

aarongray avatar aarongray commented on August 26, 2024

The rails-api issue (the concern not getting inserted into the application controller) has been fixed on #350.

from devise_token_auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.