method

valid_authenticity_token?

rails latest stable - Class: ActionController::RequestForgeryProtection
valid_authenticity_token?(session, encoded_masked_token)
private

Checks the client’s masked token to see if it matches the session token. Essentially the inverse of masked_authenticity_token.