Function OAuthWebapp.oauthSession

Get the OAuthSession object associated to a request.

final OAuthSession oauthSession (
  scope vibe.http.server.HTTPServerRequest req
) nothrow @trusted;

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.

Parameters

NameDescription
req the request to get the relevant session for

Returns

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