Skip to content

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

Open
williamhatch wants to merge 6 commits into
lynndylanhurley:masterfrom
williamhatch:master
Open

devise_token_group does return the header part (CID,token, client-id ETC)#1258
williamhatch wants to merge 6 commits into
lynndylanhurley:masterfrom
williamhatch:master

Conversation

@williamhatch

Copy link
Copy Markdown

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

@williamhatch

Copy link
Copy Markdown
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