Vital
Loading...
Searching...
No Matches
Authentication Class Reference

A no-op stub implementation used when authentication is disabled. More...

#include <authentication.h>

Public Member Functions

std::string token ()
 Returns an empty token string.
 
bool loggedIn ()
 Always returns false, indicating no user is logged in.
 
void refreshToken ()
 No-op token refresh method.
 

Static Public Member Functions

static void create ()
 No-op create method.
 

Detailed Description

A no-op stub implementation used when authentication is disabled.

When built in debug mode or with NO_AUTH defined, this stub provides empty implementations that do nothing.

Member Function Documentation

◆ create()

static void Authentication::create ( )
inlinestatic

No-op create method.

◆ loggedIn()

bool Authentication::loggedIn ( )
inline

Always returns false, indicating no user is logged in.

Returns
False.

◆ refreshToken()

void Authentication::refreshToken ( )
inline

No-op token refresh method.

◆ token()

std::string Authentication::token ( )
inline

Returns an empty token string.

Returns
An empty string.

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