@geexcode/geex-angular 0.0.25 → 0.0.26

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/index.js CHANGED
@@ -176,12 +176,12 @@ function createAuthModule(injector) {
176
176
  async loadUserData() {
177
177
  const oAuthService = injector.get(import_angular_oauth2_oidc.OAuthService);
178
178
  try {
179
- if (!oAuthService.hasValidIdToken()) {
179
+ if (!oAuthService.hasValidAccessToken()) {
180
180
  return void 0;
181
181
  }
182
182
  await oAuthService.loadUserProfile();
183
183
  const profile = oAuthService.getIdentityClaims();
184
- if (profile && oAuthService.hasValidAccessToken()) {
184
+ if (profile) {
185
185
  const result = await (0, import_rxjs.firstValueFrom)(injector.get(import_apollo_angular.Apollo).mutate({
186
186
  mutation: GQL_FEDERATE_AUTH,
187
187
  variables: {
@@ -228,6 +228,9 @@ function createIdentityModule(injector) {
228
228
  }
229
229
  function createMessagingModule(injector) {
230
230
  return {
231
+ init: async () => {
232
+ return;
233
+ },
231
234
  onPublicNotify() {
232
235
  const subClient = injector.get(import_apollo_angular.Apollo).use("subscription");
233
236
  subClient.subscribe({ query: GQL_ON_PUBLIC_NOTIFY }).pipe((0, import_rxjs.map)((res) => res?.data?.onPublicNotify)).subscribe((notify) => {
package/dist/index.mjs CHANGED
@@ -131,12 +131,12 @@ function createAuthModule(injector) {
131
131
  async loadUserData() {
132
132
  const oAuthService = injector.get(OAuthService);
133
133
  try {
134
- if (!oAuthService.hasValidIdToken()) {
134
+ if (!oAuthService.hasValidAccessToken()) {
135
135
  return void 0;
136
136
  }
137
137
  await oAuthService.loadUserProfile();
138
138
  const profile = oAuthService.getIdentityClaims();
139
- if (profile && oAuthService.hasValidAccessToken()) {
139
+ if (profile) {
140
140
  const result = await firstValueFrom(injector.get(Apollo).mutate({
141
141
  mutation: GQL_FEDERATE_AUTH,
142
142
  variables: {
@@ -183,6 +183,9 @@ function createIdentityModule(injector) {
183
183
  }
184
184
  function createMessagingModule(injector) {
185
185
  return {
186
+ init: async () => {
187
+ return;
188
+ },
186
189
  onPublicNotify() {
187
190
  const subClient = injector.get(Apollo).use("subscription");
188
191
  subClient.subscribe({ query: GQL_ON_PUBLIC_NOTIFY }).pipe(map((res) => res?.data?.onPublicNotify)).subscribe((notify) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geexcode/geex-angular",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Angular adapter for Geex core.",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs",