@inflector/aura 0.5.1 → 0.6.0

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 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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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" | "polar" | "vercel";
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;
@@ -1483,5 +1483,6 @@ export declare const AuraAuth: (url: string, workspace: string) => {
1483
1483
  };
1484
1484
  }>;
1485
1485
  GetScopes: () => Promise<any>;
1486
+ HasScopes: (scope: string) => Promise<any>;
1486
1487
  };
1487
1488
  //# sourceMappingURL=auth.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,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
  },
@@ -180,14 +181,24 @@ export const AuraAuth = (url, workspace) => {
180
181
  })(),
181
182
  GetAccessToken: (provider) => authClient.getAccessToken({ providerId: provider }),
182
183
  GetScopes: async () => {
183
- return await post({
184
+ return (await post({
184
185
  operation: "GetOne",
185
186
  settings: {
186
187
  where: {
187
188
  userId: User.id,
188
189
  },
189
190
  },
190
- }, "account");
191
+ }, "account")).scope.split(",");
192
+ },
193
+ HasScopes: async (scope) => {
194
+ return (await post({
195
+ operation: "GetOne",
196
+ settings: {
197
+ where: {
198
+ userId: User.id,
199
+ },
200
+ },
201
+ }, "account")).scope.split(",").includes(scope);
191
202
  },
192
203
  };
193
204
  };
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
@@ -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,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AC;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,83 @@
1
+ export declare const AuraPayments: (url: string, workspace: string) => {
2
+ 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
+ GetSate: <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
+ GetSubs: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
22
+ referenceId?: string | undefined;
23
+ page?: number | undefined;
24
+ limit?: number | undefined;
25
+ active?: boolean | undefined;
26
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
27
+ query?: {
28
+ referenceId?: string | undefined;
29
+ page?: number | undefined;
30
+ limit?: number | undefined;
31
+ active?: boolean | undefined;
32
+ } | undefined;
33
+ fetchOptions?: FetchOptions | undefined;
34
+ }> | 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, {
35
+ page: number;
36
+ }> | import("@polar-sh/sdk/types/operations.js").PageIterator<import("@polar-sh/sdk/models/operations/customerportalsubscriptionslist.js").CustomerPortalSubscriptionsListResponse, {
37
+ page: number;
38
+ }>>, {
39
+ code?: string | undefined;
40
+ message?: string | undefined;
41
+ }, FetchOptions["throw"] extends true ? true : false>>;
42
+ Checkout: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
43
+ returnUrl?: string | undefined;
44
+ products?: string | string[] | undefined;
45
+ slug?: string | undefined;
46
+ referenceId?: string | undefined;
47
+ customFieldData?: Record<string, string | number | boolean> | undefined;
48
+ metadata?: Record<string, string | number | boolean> | undefined;
49
+ allowDiscountCodes?: boolean | undefined;
50
+ discountId?: string | undefined;
51
+ redirect?: boolean | undefined;
52
+ embedOrigin?: string | undefined;
53
+ successUrl?: string | undefined;
54
+ allowTrial?: boolean | undefined;
55
+ trialInterval?: "day" | "week" | "month" | "year" | undefined;
56
+ trialIntervalCount?: number | undefined;
57
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
58
+ returnUrl?: string | undefined;
59
+ products?: string | string[] | undefined;
60
+ slug?: string | undefined;
61
+ referenceId?: string | undefined;
62
+ customFieldData?: Record<string, string | number | boolean> | undefined;
63
+ metadata?: Record<string, string | number | boolean> | undefined;
64
+ allowDiscountCodes?: boolean | undefined;
65
+ discountId?: string | undefined;
66
+ redirect?: boolean | undefined;
67
+ embedOrigin?: string | undefined;
68
+ successUrl?: string | undefined;
69
+ allowTrial?: boolean | undefined;
70
+ trialInterval?: "day" | "week" | "month" | "year" | undefined;
71
+ trialIntervalCount?: number | undefined;
72
+ } & {
73
+ fetchOptions?: FetchOptions | undefined;
74
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
75
+ url: string;
76
+ redirect: boolean;
77
+ }, {
78
+ code?: string | undefined;
79
+ message?: string | undefined;
80
+ }, FetchOptions["throw"] extends true ? true : false>>;
81
+ CheckoutEmbeded: (data: Omit<import("@polar-sh/better-auth").CheckoutParams, "redirect" | "embedOrigin">, fetchOptions?: import("@better-fetch/fetch").BetterFetchOption) => Promise<import("@polar-sh/checkout/embed").PolarEmbedCheckout>;
82
+ };
83
+ //# sourceMappingURL=payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/payments.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB1D,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { createAuthClient } from "better-auth/client";
2
+ import { polarClient } from "@polar-sh/better-auth/client";
3
+ // export const AuraAuth = (workspace: string) => {
4
+ export const AuraPayments = (url, workspace) => {
5
+ const authClient = createAuthClient({
6
+ // baseURL: `${window.location.origin}/api/auth/${workspace}`,
7
+ baseURL: `${url}/api/auth/${workspace}`,
8
+ plugins: [polarClient()],
9
+ fetchOptions: {
10
+ credentials: "include",
11
+ },
12
+ });
13
+ return {
14
+ OpenPortal: authClient.customer.portal,
15
+ GetSate: authClient.customer.state,
16
+ GetSubs: authClient.customer.subscriptions.list,
17
+ Checkout: authClient.checkout,
18
+ CheckoutEmbeded: authClient.checkoutEmbed
19
+ };
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
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",