Table of Contents

Class LoginResponseDto

Namespace
GastroSky.Models.DTO.Auth
Assembly
GastroSky.Models.dll

Response body for successful login attempts.

public sealed class LoginResponseDto
Inheritance
LoginResponseDto
Inherited Members

Properties

DefibrillatorToken

Special token that has a longer lifetime than the standard auth Token.

Clients can pass this to the refresh endpoint and revive an expired token if this one isn't expired too.
public string DefibrillatorToken { get; set; }

Property Value

string

ServerMessage

A broadcast message from the GastroSky backend. This can be null or empty.

When this is not null or empty, the frontend should display this message as a pop-up modal after successful login (e.g. "maintenance notification - please note we're down for maintenance on Sunday 64th of July 4058").
public string ServerMessage { get; set; }

Property Value

string

Token

Auth token. Send this alongside every request inside the Authorization header as a bearer token!

public string Token { get; set; }

Property Value

string