method

encode_credentials

rails latest stable - Class: ActionController::HttpAuthentication::Token
encode_credentials(token, options = {})
public

Encodes the given token and options into an Authorization header value.

Returns String.

Parameters

  • token - String token.

  • options - Optional Hash of the options.