mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-05 23:34:09 +02:00
Generated by AurionDocs
Job ID: 934f8c39-8082-4942-8d17-72ed8f5f8d50
Source commit: 40aea9a
679 B
679 B
JwtTokenService
File:
src/EchoHub.Server/Auth/JwtTokenService.cs
Kind: class
public class JwtTokenService
JwtTokenService centralizes creation of JWTs for API authentication: it issues short-lived access tokens via GenerateAccessToken (from a User or a UserProfileDto) and provides a cryptographically secure refresh token generator via GenerateRefreshToken (and HashToken to store a hashed form). It reads its secret, issuer, and audience from configuration and enforces token lifetimes defined by AccessTokenLifetime and RefreshTokenLifetime.