• Use the ProfileData to generate a payload object for JWT token (cast, extract relevant data, and return).

    Parameters

    • provider: string

      String of the provider, being used

    • data: ProfileData

      ProfileData, returned from passport post-authentication step

    • rawId: boolean

      boolean, true if the id in data needs to be prepended by the provider, false if not

    Returns Promise<JwtPayload>

    JwtPayload, which gets sent back to the user in the next step

Generated using TypeDoc