Skip to content

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