dexie-cloud-common
Advanced tools
Comparing version 1.0.30 to 1.0.31
@@ -67,2 +67,11 @@ export type TokenRequest = OTPTokenRequest | ClientCredentialsTokenRequest | RefreshTokenRequest | DemoTokenRequest; | ||
} | ||
export interface TokenErrorResponse { | ||
type: 'error'; | ||
title: string; | ||
messageCode: 'INVALID_OTP' | 'INVALID_EMAIL' | 'LICENSE_LIMIT_REACHED' | 'GENERIC_ERROR'; | ||
message: string; | ||
messageParams?: { | ||
[param: string]: string; | ||
}; | ||
} | ||
/** Can be returned when grant_type="refresh_token" if the given time_stamp differs too much | ||
@@ -78,3 +87,3 @@ * from server time. Will happen if the client's clock differs too much from the server. | ||
} | ||
export type TokenResponse = TokenFinalResponse | TokenOtpSentResponse | TokenResponseInvalidTimestamp; | ||
export type TokenResponse = TokenFinalResponse | TokenOtpSentResponse | TokenErrorResponse | TokenResponseInvalidTimestamp; | ||
export interface CreateDbResponse { | ||
@@ -81,0 +90,0 @@ url: string; |
{ | ||
"name": "dexie-cloud-common", | ||
"version": "1.0.30", | ||
"version": "1.0.31", | ||
"description": "Library for shared code between dexie-cloud-addon, dexie-cloud (CLI) and dexie-cloud-server", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77097
699