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 gem with API app #757

Open
00dav00 opened this issue May 17, 2018 · 2 comments
Open

Use gem with API app #757

00dav00 opened this issue May 17, 2018 · 2 comments

Comments

@00dav00
Copy link

00dav00 commented May 17, 2018

Does anyone have experience using this gem with API only apps? I looked for info in the wiki but couldn't find anything.
Thanks!

@scambra
Copy link
Owner

scambra commented Feb 3, 2022

Why you edited the issue and remove all the code? It was useful to help you debugging where can be the issue.

Anyway, you could override invite_params method in your controller, and log what it returns, although I guess it will return empty due to validation error you got.

    def invite_params
      super.tap do |val|
        logger.info val.inspect
      end
    end

Have you changed invite_keys setting in initializer or model?

@scambra
Copy link
Owner

scambra commented Feb 3, 2022

You may have issues with devise parameter sanitizer so you may need to define your own invite_params method. Check this:
https://stackoverflow.com/questions/42383243/setting-up-an-api-using-devise-for-authentication

I haven't digged deep enough, but sanitizer may work different depending on how routes are defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants