@veltdev/sdk 4.6.1 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/models/data/user.data.model.d.ts +5 -0
- package/package.json +1 -1
- package/velt.js +64 -64
|
@@ -99,6 +99,10 @@ export declare class Options {
|
|
|
99
99
|
* If you want to force re-login the user.
|
|
100
100
|
*/
|
|
101
101
|
forceReset?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* If you want to throw an error if the user is not authenticated.
|
|
104
|
+
*/
|
|
105
|
+
throwError?: boolean;
|
|
102
106
|
}
|
|
103
107
|
export interface AuthRetryConfig {
|
|
104
108
|
retryCount?: number;
|
|
@@ -115,6 +119,7 @@ export interface VeltAuthProvider {
|
|
|
115
119
|
options?: Options;
|
|
116
120
|
retryConfig?: AuthRetryConfig;
|
|
117
121
|
generateToken?: () => Promise<string>;
|
|
122
|
+
onError?: (err: unknown) => void;
|
|
118
123
|
}
|
|
119
124
|
export declare enum RevokeAccessOnType {
|
|
120
125
|
DOCUMENT_UNSET = "document_unset",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|