def bearer_authorization_header(token_or_user = nil, scopes: Oauth::SCOPES)
token = case token_or_user
when nil then create(:oauth_access_token, :scopes => scopes).token
def bearer_authorization_header(token_or_user = nil, scopes: Oauth::SCOPES)
token = case token_or_user
when nil then create(:oauth_access_token, :scopes => scopes).token