Devise Auth Token

146 Views Asked by At

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

1

There are 1 best solutions below

0
MD Shahid Khan On

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