• Verify and decode JWT token

    Author

    aayushchugh, is-it-ayush

    Type Parameters

    • T

    Parameters

    • token: string

      encoded token which will be verified/decoded

    • keyName: "ACCESS_TOKEN_PUBLIC_KEY" | "REFRESH_TOKEN_PUBLIC_KEY"

      key which will be used to decode token (should be same as private key)

    Returns Promise<T | null>

Generated using TypeDoc