Lockspire.Plug.RequireToken
(lockspire v1.1.2)
Copy Markdown
A strict enforcement plug that ensures a valid Lockspire.AccessToken
is present in conn.assigns[:access_token]. If not, it halts the connection
and responds with a 401 Unauthorized and the appropriate RFC 6750 headers.