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

devise_token_group does return the header part (CID,token, client-id ETC) #1258

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

williamhatch
Copy link

I found it is the issue in @resource.is_a?(rc) when devise_token_group

@williamhatch
Copy link
Author

OK add more detail here:
in appicaiton_controller.rb

devise_token_auth_group :member, contains: [:user, :company]
before_action :authenticate_member! # Ensure someone is logged in
skip_before_action :authenticate_member!, if: :devise_controller?

Then use postman client to test it, user return token etc but company doesnt!

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

Successfully merging this pull request may close these issues.

1 participant