@razakalpha/convngx 0.2.6 → 0.2.7

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@razakalpha/convngx",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.1",
6
6
  "@angular/core": "^21.1.1",
7
7
  "convex": "^1.25.4",
8
- "@convex-dev/better-auth": "^0.10.10",
9
- "better-auth": "1.4.9"
8
+ "@convex-dev/better-auth": "^0.7.18",
9
+ "better-auth": "1.3.8"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"
@@ -3,8 +3,9 @@ import { FunctionReference, FunctionArgs, FunctionReturnType } from 'convex/serv
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { InjectionToken, Provider, ResourceRef, Signal } from '@angular/core';
5
5
  import * as nanostores from 'nanostores';
6
- import * as _better_fetch_fetch from '@better-fetch/fetch';
7
6
  import * as jose from 'jose';
7
+ import * as _better_fetch_fetch from '@better-fetch/fetch';
8
+ import * as better_auth_plugins from 'better-auth/plugins';
8
9
  import * as better_auth from 'better-auth';
9
10
  import { createAuthClient } from 'better-auth/client';
10
11
  import { convexClient, crossDomainClient } from '@convex-dev/better-auth/client/plugins';
@@ -118,6 +119,18 @@ interface ProvideAuthClientOptions {
118
119
  * get full type safety from better-auth directly.
119
120
  */
120
121
  declare const AUTH_CLIENT: InjectionToken<{
122
+ convex: {
123
+ ".wellKnown": {
124
+ openidConfiguration: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
125
+ query?: Record<string, any> | undefined;
126
+ fetchOptions?: FetchOptions | undefined;
127
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_plugins.OIDCMetadata, {
128
+ code?: string | undefined;
129
+ message?: string | undefined;
130
+ }, FetchOptions["throw"] extends true ? true : false>>;
131
+ };
132
+ };
133
+ } & {
121
134
  convex: {
122
135
  jwks: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
123
136
  query?: Record<string, any> | undefined;
@@ -655,24 +668,27 @@ declare const AUTH_CLIENT: InjectionToken<{
655
668
  }, FetchOptions["throw"] extends true ? true : false>>;
656
669
  } & {
657
670
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
658
- disableCookieCache?: unknown;
659
- disableRefresh?: unknown;
671
+ disableCookieCache?: string | boolean | undefined;
672
+ disableRefresh?: boolean | undefined;
660
673
  }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
661
674
  query?: {
662
- disableCookieCache?: unknown;
663
- disableRefresh?: unknown;
675
+ disableCookieCache?: string | boolean | undefined;
676
+ disableRefresh?: boolean | undefined;
664
677
  } | undefined;
665
678
  fetchOptions?: FetchOptions | undefined;
666
679
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
667
- user: {
680
+ user: Omit<{
668
681
  id: string;
669
682
  createdAt: Date;
670
683
  updatedAt: Date;
671
684
  email: string;
672
685
  emailVerified: boolean;
673
686
  name: string;
674
- image?: string | null | undefined;
675
- userId?: string | null | undefined;
687
+ image?: string | null | undefined | undefined;
688
+ } & {
689
+ userId: string;
690
+ }, "userId"> & {
691
+ id: string;
676
692
  };
677
693
  session: {
678
694
  id: string;
@@ -681,10 +697,12 @@ declare const AUTH_CLIENT: InjectionToken<{
681
697
  userId: string;
682
698
  expiresAt: Date;
683
699
  token: string;
684
- ipAddress?: string | null | undefined;
685
- userAgent?: string | null | undefined;
700
+ ipAddress?: string | null | undefined | undefined;
701
+ userAgent?: string | null | undefined | undefined;
702
+ } & {
703
+ userId: string;
686
704
  };
687
- } | null, {
705
+ }, {
688
706
  code?: string | undefined;
689
707
  message?: string | undefined;
690
708
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -695,15 +713,18 @@ declare const AUTH_CLIENT: InjectionToken<{
695
713
  } & {
696
714
  useSession: nanostores.Atom<{
697
715
  data: {
698
- user: {
716
+ user: Omit<{
699
717
  id: string;
700
718
  createdAt: Date;
701
719
  updatedAt: Date;
702
720
  email: string;
703
721
  emailVerified: boolean;
704
722
  name: string;
705
- image?: string | null | undefined;
706
- userId?: string | null | undefined;
723
+ image?: string | null | undefined | undefined;
724
+ } & {
725
+ userId: string;
726
+ }, "userId"> & {
727
+ id: string;
707
728
  };
708
729
  session: {
709
730
  id: string;
@@ -712,8 +733,10 @@ declare const AUTH_CLIENT: InjectionToken<{
712
733
  userId: string;
713
734
  expiresAt: Date;
714
735
  token: string;
715
- ipAddress?: string | null | undefined;
716
- userAgent?: string | null | undefined;
736
+ ipAddress?: string | null | undefined | undefined;
737
+ userAgent?: string | null | undefined | undefined;
738
+ } & {
739
+ userId: string;
717
740
  };
718
741
  } | null;
719
742
  error: _better_fetch_fetch.BetterFetchError | null;
@@ -792,15 +815,18 @@ declare const AUTH_CLIENT: InjectionToken<{
792
815
  };
793
816
  $Infer: {
794
817
  Session: {
795
- user: {
818
+ user: Omit<{
796
819
  id: string;
797
820
  createdAt: Date;
798
821
  updatedAt: Date;
799
822
  email: string;
800
823
  emailVerified: boolean;
801
824
  name: string;
802
- image?: string | null | undefined;
803
- userId?: string | null | undefined;
825
+ image?: string | null | undefined | undefined;
826
+ } & {
827
+ userId: string;
828
+ }, "userId"> & {
829
+ id: string;
804
830
  };
805
831
  session: {
806
832
  id: string;
@@ -809,8 +835,10 @@ declare const AUTH_CLIENT: InjectionToken<{
809
835
  userId: string;
810
836
  expiresAt: Date;
811
837
  token: string;
812
- ipAddress?: string | null | undefined;
813
- userAgent?: string | null | undefined;
838
+ ipAddress?: string | null | undefined | undefined;
839
+ userAgent?: string | null | undefined | undefined;
840
+ } & {
841
+ userId: string;
814
842
  };
815
843
  };
816
844
  };