JwtStrategy

Description

This class provides a JWT strategy for user authentication.

Hierarchy

  • any
    • JwtStrategy

Constructors

Methods

Constructors

  • Parameters

    Returns JwtStrategy

Methods

  • Parameters

    • payload: any

      The JWT payload.

    Returns Promise<{
        id: string;
        role: string;
        username: string;
    }>

    • The user data.

    Async

    Description

    This method validates the JWT payload and returns the user data.