Function mock_session

Source
pub fn mock_session(tokens: SessionTokens) -> OAuthSession
Available on crate feature testing only.
Expand description

An OAuthSession to restore, for unit or integration tests.