use super::RequestContext;
impl RequestContext {
#[must_use]
pub const fn with_browser_session(mut self) -> Self {
self.auth.browser_session = true;
self
}
#[must_use]
pub const fn is_browser_session(&self) -> bool {
self.auth.browser_session
}
#[must_use]
pub const fn with_cookie_transport(mut self) -> Self {
self.auth.cookie_transport = true;
self
}
#[must_use]
pub const fn is_cookie_transport(&self) -> bool {
self.auth.cookie_transport
}
#[must_use]
pub const fn with_token_exp(mut self, token_exp: i64) -> Self {
self.auth.token_exp = Some(token_exp);
self
}
#[must_use]
pub const fn token_exp(&self) -> Option<i64> {
self.auth.token_exp
}
}