Muhammad Ans
Muhammad Ans

Reputation: 179

Devise Auth Token

can anyone explain me what is the following line doing in DeviseAuthToken

sign_in(:user, @resource, store: false, bypass: false.

what is the function of store: false and bypass: false

Upvotes: 0

Views: 166

Answers (1)

MD Shahid Khan
MD Shahid Khan

Reputation: 806

As per documentation of devise-token-auth

By default DeviseTokenAuth will not check user's #active_for_authentication? which includes confirmation check on each call (it will do it only on sign in) If you want it to be validated on each request (for example, to be able to deactivate logged in users on the fly), set it to false

Upvotes: 0

Related Questions