Function 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.
Parameters
Name | Description |
---|---|
req | the request to get the relevant session for |
Returns
The session associated to req, or null
if no
session was found.