OAuthWebapp.oauthSession

Get the OAuthSession object associated to a request.

This method is optimized for speed. It just gets the OAuthSession from the request context and doesn't do any validation.

Always make sure that either login or isLoggedIn has been called for a request before this method is used.

class OAuthWebapp
final nothrow @trusted
oauthSession
(
scope HTTPServerRequest req
)

Parameters

req HTTPServerRequest

the request to get the relevant session for

Return Value

The session associated to req, or null if no session was found.

Meta