MantisBase v0.4.9
Loading...
Searching...
No Matches
mb::RealtimeAuthSnapshot Struct Reference

MbAuth state captured at connect or subscribe time. More...

#include <realtime_session.h>

Public Attributes

json auth = json::object()
json verification = json::object()
std::string token
std::chrono::system_clock::time_point expires_at {}

Detailed Description

MbAuth state captured at connect or subscribe time.

auth and verification mirror the shape produced by HTTP auth middleware. token is empty for guest sessions. expires_at is set for JWT-backed sessions.

Member Data Documentation

◆ auth

json mb::RealtimeAuthSnapshot::auth = json::object()

◆ expires_at

std::chrono::system_clock::time_point mb::RealtimeAuthSnapshot::expires_at {}

◆ token

std::string mb::RealtimeAuthSnapshot::token

◆ verification

json mb::RealtimeAuthSnapshot::verification = json::object()

The documentation for this struct was generated from the following file: