@inflector/aura 0.5.2 → 0.6.1
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/dist/auth.d.ts +34 -34
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/payments.d.ts +104 -0
- package/dist/payments.d.ts.map +1 -0
- package/dist/payments.js +20 -0
- package/package.json +2 -1
package/dist/auth.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
84
84
|
readonly User: any;
|
|
85
85
|
Oauth: {
|
|
86
86
|
Google: (data?: Omit<import("better-auth").Prettify<{
|
|
87
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
87
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
88
88
|
callbackURL?: string | undefined;
|
|
89
89
|
newUserCallbackURL?: string | undefined;
|
|
90
90
|
errorCallbackURL?: string | undefined;
|
|
@@ -102,7 +102,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
102
102
|
additionalData?: Record<string, any> | undefined;
|
|
103
103
|
} & {
|
|
104
104
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
105
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
105
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
106
106
|
callbackURL?: string | undefined;
|
|
107
107
|
newUserCallbackURL?: string | undefined;
|
|
108
108
|
errorCallbackURL?: string | undefined;
|
|
@@ -148,7 +148,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
148
148
|
};
|
|
149
149
|
}>;
|
|
150
150
|
Apple: (data?: Omit<import("better-auth").Prettify<{
|
|
151
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
151
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
152
152
|
callbackURL?: string | undefined;
|
|
153
153
|
newUserCallbackURL?: string | undefined;
|
|
154
154
|
errorCallbackURL?: string | undefined;
|
|
@@ -166,7 +166,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
166
166
|
additionalData?: Record<string, any> | undefined;
|
|
167
167
|
} & {
|
|
168
168
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
169
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
169
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
170
170
|
callbackURL?: string | undefined;
|
|
171
171
|
newUserCallbackURL?: string | undefined;
|
|
172
172
|
errorCallbackURL?: string | undefined;
|
|
@@ -212,7 +212,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
212
212
|
};
|
|
213
213
|
}>;
|
|
214
214
|
Discord: (data?: Omit<import("better-auth").Prettify<{
|
|
215
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
215
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
216
216
|
callbackURL?: string | undefined;
|
|
217
217
|
newUserCallbackURL?: string | undefined;
|
|
218
218
|
errorCallbackURL?: string | undefined;
|
|
@@ -230,7 +230,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
230
230
|
additionalData?: Record<string, any> | undefined;
|
|
231
231
|
} & {
|
|
232
232
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
233
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
233
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
234
234
|
callbackURL?: string | undefined;
|
|
235
235
|
newUserCallbackURL?: string | undefined;
|
|
236
236
|
errorCallbackURL?: string | undefined;
|
|
@@ -276,7 +276,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
276
276
|
};
|
|
277
277
|
}>;
|
|
278
278
|
Facebook: (data?: Omit<import("better-auth").Prettify<{
|
|
279
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
279
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
280
280
|
callbackURL?: string | undefined;
|
|
281
281
|
newUserCallbackURL?: string | undefined;
|
|
282
282
|
errorCallbackURL?: string | undefined;
|
|
@@ -294,7 +294,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
294
294
|
additionalData?: Record<string, any> | undefined;
|
|
295
295
|
} & {
|
|
296
296
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
297
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
297
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
298
298
|
callbackURL?: string | undefined;
|
|
299
299
|
newUserCallbackURL?: string | undefined;
|
|
300
300
|
errorCallbackURL?: string | undefined;
|
|
@@ -340,7 +340,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
340
340
|
};
|
|
341
341
|
}>;
|
|
342
342
|
Github: (data?: Omit<import("better-auth").Prettify<{
|
|
343
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
343
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
344
344
|
callbackURL?: string | undefined;
|
|
345
345
|
newUserCallbackURL?: string | undefined;
|
|
346
346
|
errorCallbackURL?: string | undefined;
|
|
@@ -358,7 +358,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
358
358
|
additionalData?: Record<string, any> | undefined;
|
|
359
359
|
} & {
|
|
360
360
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
361
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
361
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
362
362
|
callbackURL?: string | undefined;
|
|
363
363
|
newUserCallbackURL?: string | undefined;
|
|
364
364
|
errorCallbackURL?: string | undefined;
|
|
@@ -404,7 +404,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
404
404
|
};
|
|
405
405
|
}>;
|
|
406
406
|
Gitlab: (data?: Omit<import("better-auth").Prettify<{
|
|
407
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
407
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
408
408
|
callbackURL?: string | undefined;
|
|
409
409
|
newUserCallbackURL?: string | undefined;
|
|
410
410
|
errorCallbackURL?: string | undefined;
|
|
@@ -422,7 +422,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
422
422
|
additionalData?: Record<string, any> | undefined;
|
|
423
423
|
} & {
|
|
424
424
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
425
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
425
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
426
426
|
callbackURL?: string | undefined;
|
|
427
427
|
newUserCallbackURL?: string | undefined;
|
|
428
428
|
errorCallbackURL?: string | undefined;
|
|
@@ -468,7 +468,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
468
468
|
};
|
|
469
469
|
}>;
|
|
470
470
|
HuggingFace: (data?: Omit<import("better-auth").Prettify<{
|
|
471
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
471
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
472
472
|
callbackURL?: string | undefined;
|
|
473
473
|
newUserCallbackURL?: string | undefined;
|
|
474
474
|
errorCallbackURL?: string | undefined;
|
|
@@ -486,7 +486,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
486
486
|
additionalData?: Record<string, any> | undefined;
|
|
487
487
|
} & {
|
|
488
488
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
489
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
489
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
490
490
|
callbackURL?: string | undefined;
|
|
491
491
|
newUserCallbackURL?: string | undefined;
|
|
492
492
|
errorCallbackURL?: string | undefined;
|
|
@@ -532,7 +532,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
532
532
|
};
|
|
533
533
|
}>;
|
|
534
534
|
Linkedin: (data?: Omit<import("better-auth").Prettify<{
|
|
535
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
535
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
536
536
|
callbackURL?: string | undefined;
|
|
537
537
|
newUserCallbackURL?: string | undefined;
|
|
538
538
|
errorCallbackURL?: string | undefined;
|
|
@@ -550,7 +550,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
550
550
|
additionalData?: Record<string, any> | undefined;
|
|
551
551
|
} & {
|
|
552
552
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
553
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
553
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
554
554
|
callbackURL?: string | undefined;
|
|
555
555
|
newUserCallbackURL?: string | undefined;
|
|
556
556
|
errorCallbackURL?: string | undefined;
|
|
@@ -596,7 +596,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
596
596
|
};
|
|
597
597
|
}>;
|
|
598
598
|
Microsoft: (data?: Omit<import("better-auth").Prettify<{
|
|
599
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
599
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
600
600
|
callbackURL?: string | undefined;
|
|
601
601
|
newUserCallbackURL?: string | undefined;
|
|
602
602
|
errorCallbackURL?: string | undefined;
|
|
@@ -614,7 +614,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
614
614
|
additionalData?: Record<string, any> | undefined;
|
|
615
615
|
} & {
|
|
616
616
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
617
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
617
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
618
618
|
callbackURL?: string | undefined;
|
|
619
619
|
newUserCallbackURL?: string | undefined;
|
|
620
620
|
errorCallbackURL?: string | undefined;
|
|
@@ -660,7 +660,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
660
660
|
};
|
|
661
661
|
}>;
|
|
662
662
|
Reddit: (data?: Omit<import("better-auth").Prettify<{
|
|
663
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
663
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
664
664
|
callbackURL?: string | undefined;
|
|
665
665
|
newUserCallbackURL?: string | undefined;
|
|
666
666
|
errorCallbackURL?: string | undefined;
|
|
@@ -678,7 +678,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
678
678
|
additionalData?: Record<string, any> | undefined;
|
|
679
679
|
} & {
|
|
680
680
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
681
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
681
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
682
682
|
callbackURL?: string | undefined;
|
|
683
683
|
newUserCallbackURL?: string | undefined;
|
|
684
684
|
errorCallbackURL?: string | undefined;
|
|
@@ -724,7 +724,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
724
724
|
};
|
|
725
725
|
}>;
|
|
726
726
|
Polar: (data?: Omit<import("better-auth").Prettify<{
|
|
727
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
727
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
728
728
|
callbackURL?: string | undefined;
|
|
729
729
|
newUserCallbackURL?: string | undefined;
|
|
730
730
|
errorCallbackURL?: string | undefined;
|
|
@@ -742,7 +742,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
742
742
|
additionalData?: Record<string, any> | undefined;
|
|
743
743
|
} & {
|
|
744
744
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
745
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
745
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
746
746
|
callbackURL?: string | undefined;
|
|
747
747
|
newUserCallbackURL?: string | undefined;
|
|
748
748
|
errorCallbackURL?: string | undefined;
|
|
@@ -788,7 +788,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
788
788
|
};
|
|
789
789
|
}>;
|
|
790
790
|
Spotify: (data?: Omit<import("better-auth").Prettify<{
|
|
791
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
791
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
792
792
|
callbackURL?: string | undefined;
|
|
793
793
|
newUserCallbackURL?: string | undefined;
|
|
794
794
|
errorCallbackURL?: string | undefined;
|
|
@@ -806,7 +806,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
806
806
|
additionalData?: Record<string, any> | undefined;
|
|
807
807
|
} & {
|
|
808
808
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
809
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
809
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
810
810
|
callbackURL?: string | undefined;
|
|
811
811
|
newUserCallbackURL?: string | undefined;
|
|
812
812
|
errorCallbackURL?: string | undefined;
|
|
@@ -852,7 +852,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
852
852
|
};
|
|
853
853
|
}>;
|
|
854
854
|
Tiktok: (data?: Omit<import("better-auth").Prettify<{
|
|
855
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
855
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
856
856
|
callbackURL?: string | undefined;
|
|
857
857
|
newUserCallbackURL?: string | undefined;
|
|
858
858
|
errorCallbackURL?: string | undefined;
|
|
@@ -870,7 +870,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
870
870
|
additionalData?: Record<string, any> | undefined;
|
|
871
871
|
} & {
|
|
872
872
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
873
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
873
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
874
874
|
callbackURL?: string | undefined;
|
|
875
875
|
newUserCallbackURL?: string | undefined;
|
|
876
876
|
errorCallbackURL?: string | undefined;
|
|
@@ -916,7 +916,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
916
916
|
};
|
|
917
917
|
}>;
|
|
918
918
|
Twitch: (data?: Omit<import("better-auth").Prettify<{
|
|
919
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
919
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
920
920
|
callbackURL?: string | undefined;
|
|
921
921
|
newUserCallbackURL?: string | undefined;
|
|
922
922
|
errorCallbackURL?: string | undefined;
|
|
@@ -934,7 +934,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
934
934
|
additionalData?: Record<string, any> | undefined;
|
|
935
935
|
} & {
|
|
936
936
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
937
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
937
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
938
938
|
callbackURL?: string | undefined;
|
|
939
939
|
newUserCallbackURL?: string | undefined;
|
|
940
940
|
errorCallbackURL?: string | undefined;
|
|
@@ -980,7 +980,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
980
980
|
};
|
|
981
981
|
}>;
|
|
982
982
|
X: (data?: Omit<import("better-auth").Prettify<{
|
|
983
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
983
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
984
984
|
callbackURL?: string | undefined;
|
|
985
985
|
newUserCallbackURL?: string | undefined;
|
|
986
986
|
errorCallbackURL?: string | undefined;
|
|
@@ -998,7 +998,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
998
998
|
additionalData?: Record<string, any> | undefined;
|
|
999
999
|
} & {
|
|
1000
1000
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
1001
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
1001
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
1002
1002
|
callbackURL?: string | undefined;
|
|
1003
1003
|
newUserCallbackURL?: string | undefined;
|
|
1004
1004
|
errorCallbackURL?: string | undefined;
|
|
@@ -1044,7 +1044,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
1044
1044
|
};
|
|
1045
1045
|
}>;
|
|
1046
1046
|
VK: (data?: Omit<import("better-auth").Prettify<{
|
|
1047
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
1047
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
1048
1048
|
callbackURL?: string | undefined;
|
|
1049
1049
|
newUserCallbackURL?: string | undefined;
|
|
1050
1050
|
errorCallbackURL?: string | undefined;
|
|
@@ -1062,7 +1062,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
1062
1062
|
additionalData?: Record<string, any> | undefined;
|
|
1063
1063
|
} & {
|
|
1064
1064
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
1065
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
1065
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
1066
1066
|
callbackURL?: string | undefined;
|
|
1067
1067
|
newUserCallbackURL?: string | undefined;
|
|
1068
1068
|
errorCallbackURL?: string | undefined;
|
|
@@ -1108,7 +1108,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
}>;
|
|
1110
1110
|
Zoom: (data?: Omit<import("better-auth").Prettify<{
|
|
1111
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
1111
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
1112
1112
|
callbackURL?: string | undefined;
|
|
1113
1113
|
newUserCallbackURL?: string | undefined;
|
|
1114
1114
|
errorCallbackURL?: string | undefined;
|
|
@@ -1126,7 +1126,7 @@ export declare const AuraAuth: (url: string, workspace: string) => {
|
|
|
1126
1126
|
additionalData?: Record<string, any> | undefined;
|
|
1127
1127
|
} & {
|
|
1128
1128
|
fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
|
|
1129
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "
|
|
1129
|
+
provider: (string & {}) | "polar" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "vercel";
|
|
1130
1130
|
callbackURL?: string | undefined;
|
|
1131
1131
|
newUserCallbackURL?: string | undefined;
|
|
1132
1132
|
errorCallbackURL?: string | undefined;
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmG3B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;yBAQxB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA5F9C,GAAG;eACF,GAAG;mBACC,OAAO;sBACJ,OAAO;iBACZ,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmG3B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;yBAQxB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA5F9C,GAAG;eACF,GAAG;mBACC,OAAO;sBACJ,OAAO;iBACZ,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;qBAgB5B,CAAA;;;;;;;;;;;;;;;;;yBA6JqB,MAAM,EAAE;;;;;;;;;;;;;;;wBACT,MAAM,EAAE;;;;;;;;;;;;;;;0BACN,MAAM,EAAE;;;;;;;;;;;;;;;2BACP,MAAM,EAAE;;;;;;;;;;;;;;;yBACV,MAAM,EAAE;;;;;;;;;;;;;;;yBACR,MAAM,EAAE;;;;;;;;;;;;;;;8BACH,MAAM,EAAE;;;;;;;;;;;;;;;2BACX,MAAM,EAAE;;;;;;;;;;;;;;;4BACP,MAAM,EAAE;;;;;;;;;;;;;;;yBACX,MAAM,EAAE;;;;;;;;;;;;;;;wBACT,MAAM,EAAE;;;;;;;;;;;;;;;0BACN,MAAM,EAAE;;;;;;;;;;;;;;;yBACT,MAAM,EAAE;;;;;;;;;;;;;;;yBACR,MAAM,EAAE;;;;;;;;;;;;;;;oBACb,MAAM,EAAE;;;;;;;;;;;;;;;qBACP,MAAM,EAAE;;;;;;;;;;;;;;;uBACN,MAAM,EAAE;;;;;;;;;;;;;;;;+BAIA,MAAM;;;;;;;;;;;;;;;;;;uBAgBT,MAAM;CAcjC,CAAC"}
|
package/dist/auth.js
CHANGED
|
@@ -2,6 +2,7 @@ import axios from "axios";
|
|
|
2
2
|
import { createAuthClient } from "better-auth/client";
|
|
3
3
|
import { anonymousClient } from "better-auth/client/plugins";
|
|
4
4
|
import { atom } from "nanostores";
|
|
5
|
+
import { polarClient } from "@polar-sh/better-auth/client";
|
|
5
6
|
// export const AuraAuth = (workspace: string) => {
|
|
6
7
|
export const AuraAuth = (url, workspace) => {
|
|
7
8
|
const _onUserLoadedCallbacks = [];
|
|
@@ -11,7 +12,7 @@ export const AuraAuth = (url, workspace) => {
|
|
|
11
12
|
const authClient = createAuthClient({
|
|
12
13
|
// baseURL: `${window.location.origin}/api/auth/${workspace}`,
|
|
13
14
|
baseURL: `${url}/api/auth/${workspace}`,
|
|
14
|
-
plugins: [anonymousClient()],
|
|
15
|
+
plugins: [anonymousClient(), polarClient()],
|
|
15
16
|
fetchOptions: {
|
|
16
17
|
credentials: "include",
|
|
17
18
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuraAuth } from "./auth";
|
|
2
2
|
import { AuraDatabase } from "./database";
|
|
3
|
+
import { AuraPayments } from "./payments";
|
|
3
4
|
import { Realtime } from "./realtime";
|
|
4
5
|
import { AuraStorage } from "./storage";
|
|
5
6
|
export * from "@inflector/optima-pg/types";
|
|
@@ -19,6 +20,7 @@ type AuraInstance<F, T extends Record<string, any>> = {
|
|
|
19
20
|
Storage: ReturnType<typeof AuraStorage>;
|
|
20
21
|
Auth: ReturnType<typeof AuraAuth>;
|
|
21
22
|
Realtime: ReturnType<typeof Realtime>;
|
|
23
|
+
Payments: ReturnType<typeof AuraPayments>;
|
|
22
24
|
};
|
|
23
25
|
export declare const CreateAura: <F, T extends Record<string, any>>(Config: CreateAuraConfig<T>) => AuraInstance<F, T>;
|
|
24
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAE9B,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IACnD,MAAM,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,MAAM,EAAE,CAAC,CAAC;CACb,CAAC;AAEF,KAAK,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAClD,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAE9B,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IACnD,MAAM,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,MAAM,EAAE,CAAC,CAAC;CACb,CAAC;AAEF,KAAK,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAClD,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;IACpC,QAAQ,EAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;CAC3C,CAAC;AAEF,eAAO,MAAM,UAAU,GACnB,CAAC,EACD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAE7B,QAAQ,gBAAgB,CAAC,CAAC,CAAC,KAC5B,YAAY,CAAC,CAAC,EAAE,CAAC,CAmBnB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuraAuth } from "./auth";
|
|
2
2
|
import { AuraDatabase } from "./database";
|
|
3
3
|
import { createFunctionHandler } from "./function";
|
|
4
|
+
import { AuraPayments } from "./payments";
|
|
4
5
|
import { Realtime } from "./realtime";
|
|
5
6
|
import { AuraStorage } from "./storage";
|
|
6
7
|
export * from "@inflector/optima-pg/types";
|
|
@@ -21,6 +22,7 @@ export const CreateAura = (Config) => {
|
|
|
21
22
|
Function: createFunctionHandler(Config.config.WorkSpace),
|
|
22
23
|
Auth: auth,
|
|
23
24
|
Storage: AuraStorage(Config.config.WorkSpace, auth.Signal),
|
|
24
|
-
Realtime: Realtime(Config.config.WorkSpace)
|
|
25
|
+
Realtime: Realtime(Config.config.WorkSpace),
|
|
26
|
+
Payments: AuraPayments(Config.config.Url, Config.config.WorkSpace)
|
|
25
27
|
};
|
|
26
28
|
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare const AuraPayments: (url: string, workspace: string) => {
|
|
2
|
+
readonly OpenPortal: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3
|
+
redirect?: boolean | undefined;
|
|
4
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
5
|
+
query?: Record<string, any> | undefined;
|
|
6
|
+
fetchOptions?: FetchOptions | undefined;
|
|
7
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
|
|
8
|
+
url: string;
|
|
9
|
+
redirect: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
code?: string | undefined;
|
|
12
|
+
message?: string | undefined;
|
|
13
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
14
|
+
readonly GetState: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
15
|
+
query?: Record<string, any> | undefined;
|
|
16
|
+
fetchOptions?: FetchOptions | undefined;
|
|
17
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("@polar-sh/sdk/models/components/customerstate.js").CustomerState, {
|
|
18
|
+
code?: string | undefined;
|
|
19
|
+
message?: string | undefined;
|
|
20
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
21
|
+
readonly GetOrders: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
limit?: number | undefined;
|
|
24
|
+
productBillingType?: "recurring" | "one_time" | undefined;
|
|
25
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
26
|
+
query?: {
|
|
27
|
+
page?: number | undefined;
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
productBillingType?: "recurring" | "one_time" | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
fetchOptions?: FetchOptions | undefined;
|
|
32
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<import("@polar-sh/sdk/models/operations/customerportalorderslist.js").CustomerPortalOrdersListResponse & {
|
|
33
|
+
next: import("@polar-sh/sdk/types/operations.js").Paginator<import("@polar-sh/sdk/models/operations/customerportalorderslist.js").CustomerPortalOrdersListResponse>;
|
|
34
|
+
"~next"?: {
|
|
35
|
+
page: number;
|
|
36
|
+
} | undefined;
|
|
37
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<import("@polar-sh/sdk/models/operations/customerportalorderslist.js").CustomerPortalOrdersListResponse>;
|
|
38
|
+
}>, {
|
|
39
|
+
code?: string | undefined;
|
|
40
|
+
message?: string | undefined;
|
|
41
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
42
|
+
readonly GetSubs: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
43
|
+
referenceId?: string | undefined;
|
|
44
|
+
page?: number | undefined;
|
|
45
|
+
limit?: number | undefined;
|
|
46
|
+
active?: boolean | undefined;
|
|
47
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
48
|
+
query?: {
|
|
49
|
+
referenceId?: string | undefined;
|
|
50
|
+
page?: number | undefined;
|
|
51
|
+
limit?: number | undefined;
|
|
52
|
+
active?: boolean | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
fetchOptions?: FetchOptions | undefined;
|
|
55
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<import("@polar-sh/sdk/types/operations.js").PageIterator<import("@polar-sh/sdk/models/operations/subscriptionslist.js").SubscriptionsListResponse, {
|
|
56
|
+
page: number;
|
|
57
|
+
}> | import("@polar-sh/sdk/types/operations.js").PageIterator<import("@polar-sh/sdk/models/operations/customerportalsubscriptionslist.js").CustomerPortalSubscriptionsListResponse, {
|
|
58
|
+
page: number;
|
|
59
|
+
}>>, {
|
|
60
|
+
code?: string | undefined;
|
|
61
|
+
message?: string | undefined;
|
|
62
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
63
|
+
readonly Checkout: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
64
|
+
returnUrl?: string | undefined;
|
|
65
|
+
products?: string | string[] | undefined;
|
|
66
|
+
slug?: string | undefined;
|
|
67
|
+
referenceId?: string | undefined;
|
|
68
|
+
customFieldData?: Record<string, string | number | boolean> | undefined;
|
|
69
|
+
metadata?: Record<string, string | number | boolean> | undefined;
|
|
70
|
+
allowDiscountCodes?: boolean | undefined;
|
|
71
|
+
discountId?: string | undefined;
|
|
72
|
+
redirect?: boolean | undefined;
|
|
73
|
+
embedOrigin?: string | undefined;
|
|
74
|
+
successUrl?: string | undefined;
|
|
75
|
+
allowTrial?: boolean | undefined;
|
|
76
|
+
trialInterval?: "day" | "week" | "month" | "year" | undefined;
|
|
77
|
+
trialIntervalCount?: number | undefined;
|
|
78
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
79
|
+
returnUrl?: string | undefined;
|
|
80
|
+
products?: string | string[] | undefined;
|
|
81
|
+
slug?: string | undefined;
|
|
82
|
+
referenceId?: string | undefined;
|
|
83
|
+
customFieldData?: Record<string, string | number | boolean> | undefined;
|
|
84
|
+
metadata?: Record<string, string | number | boolean> | undefined;
|
|
85
|
+
allowDiscountCodes?: boolean | undefined;
|
|
86
|
+
discountId?: string | undefined;
|
|
87
|
+
redirect?: boolean | undefined;
|
|
88
|
+
embedOrigin?: string | undefined;
|
|
89
|
+
successUrl?: string | undefined;
|
|
90
|
+
allowTrial?: boolean | undefined;
|
|
91
|
+
trialInterval?: "day" | "week" | "month" | "year" | undefined;
|
|
92
|
+
trialIntervalCount?: number | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
fetchOptions?: FetchOptions | undefined;
|
|
95
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
|
|
96
|
+
url: string;
|
|
97
|
+
redirect: boolean;
|
|
98
|
+
}, {
|
|
99
|
+
code?: string | undefined;
|
|
100
|
+
message?: string | undefined;
|
|
101
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
102
|
+
readonly CheckoutEmbedded: (data: Omit<import("@polar-sh/better-auth").CheckoutParams, "redirect" | "embedOrigin">, fetchOptions?: import("@better-fetch/fetch").BetterFetchOption) => Promise<import("@polar-sh/checkout/embed").PolarEmbedCheckout>;
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/payments.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB1D,CAAA"}
|
package/dist/payments.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createAuthClient } from "better-auth/client";
|
|
2
|
+
import { polarClient } from "@polar-sh/better-auth/client";
|
|
3
|
+
export const AuraPayments = (url, workspace) => {
|
|
4
|
+
const authClient = createAuthClient({
|
|
5
|
+
// baseURL: `${window.location.origin}/api/auth/${workspace}`,
|
|
6
|
+
baseURL: `${url}/api/auth/${workspace}`,
|
|
7
|
+
plugins: [polarClient()],
|
|
8
|
+
fetchOptions: {
|
|
9
|
+
credentials: "include",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
OpenPortal: authClient.customer.portal.bind(authClient.customer),
|
|
14
|
+
GetState: authClient.customer.state.bind(authClient.customer),
|
|
15
|
+
GetOrders: authClient.customer.orders.list.bind(authClient.customer.orders),
|
|
16
|
+
GetSubs: authClient.customer.subscriptions.list.bind(authClient.customer.subscriptions),
|
|
17
|
+
Checkout: authClient.checkout.bind(authClient),
|
|
18
|
+
CheckoutEmbedded: authClient.checkoutEmbed.bind(authClient),
|
|
19
|
+
};
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inflector/aura",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@inflector/optima-pg": "1.1.8",
|
|
32
|
+
"@polar-sh/better-auth": "^1.8.2",
|
|
32
33
|
"@types/react": "^19.2.10",
|
|
33
34
|
"axios": "^1.13.2",
|
|
34
35
|
"better-auth": "^1.4.16",
|