return new Error(ErrorTypes.TYPE_DISAUTH, `The current domain is no auth, it can't be disauth`, ErrorCodes.TYPE_DISAUTH)
}
+ static forbidden() {
+ return new Error(ErrorTypes.FORBIDDEN, `Authorization denied`, ErrorCodes.FORBIDDEN)
+ }
+
static promptClosedWithoutAction(){
- return new Error(ErrorTypes.PROMPT_CLOSED, "The user closed the prompt without any action.", ErrorCodes.TIMED_OUT)
+ return new Error(ErrorTypes.PROMPT_CLOSED, "The user closed the prompt without any action.", ErrorCodes.FORBIDDEN)
}
static signatureError(_type, _message){