Table of Contents

Class TokenService

Namespace
KadicAuth.Api.Infrastructure.Security
Assembly
KadicAuth.Api.dll
public sealed class TokenService
Inheritance
object
TokenService

Constructors

TokenService(IOptions<JwtSettings>)

public TokenService(IOptions<JwtSettings> jwtOptions)

Parameters

jwtOptions IOptions<JwtSettings>

Methods

GenerateToken(string, string)

public string GenerateToken(string userId, string email)

Parameters

userId string
email string

Returns

string