instance method bearer_token

Ruby on Rails edge

Since edge

Signature

bearer_token()

Returns the bearer token embedded in the authorization header or nil if missing.

Source
# File actionpack/lib/action_dispatch/http/request.rb, line 477
    def bearer_token
      authorization.to_s[/\ABearer (.+)\z/i, 1]
    end

Defined in actionpack/lib/action_dispatch/http/request.rb line 477 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Request

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close