@wristband/nextjs-auth
Version:
SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.
15 lines (14 loc) • 355 B
JavaScript
export class WristbandError extends Error {
constructor(error, errorDescription) {
super(error);
this.name = 'WristbandError';
this.error = error;
this.errorDescription = errorDescription;
}
getError() {
return this.error;
}
getErrorDescription() {
return this.errorDescription;
}
}