UNPKG

@foal/social

Version:

Social authentication for FoalTS

22 lines (21 loc) 626 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserInfoError = void 0; /** * Error than can be thrown in `AbstractProvider.getUserFromTokens` if the request to the * resource server is unsuccessful. * * @export * @class UserInfoError * @extends {Error} */ class UserInfoError extends Error { error; name = 'UserInfoError'; constructor(error) { super('The resource server returned an error. Impossible to access the user\'s information.\n' + JSON.stringify(error, null, 2)); this.error = error; } } exports.UserInfoError = UserInfoError;