UNPKG

passport-steam-openid

Version:

Passport strategy for authenticating with steam openid without the use of 3rd party openid packages.

14 lines (12 loc) 393 B
import { SteamOpenIdErrorType } from './type'; /** * Class used to distinguish between errors caused by user and internal ones. * * @class SteamOpenIdError * @param code can be used to see which kind of error occured programmatically. */ export class SteamOpenIdError extends Error { constructor(message: string, public readonly code: SteamOpenIdErrorType) { super(message); } }