@geexcode/geex-angular 0.0.32 → 0.0.34
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,7 +168,7 @@ function createAuthModule(injector) {
|
|
|
168
168
|
const module2 = {
|
|
169
169
|
init: async () => {
|
|
170
170
|
try {
|
|
171
|
-
|
|
171
|
+
const userData = await module2.loadUserData();
|
|
172
172
|
user.set(userData ?? null);
|
|
173
173
|
} catch (err) {
|
|
174
174
|
console.error(err);
|
|
@@ -238,6 +238,7 @@ function createMessagingModule(injector) {
|
|
|
238
238
|
const module2 = {
|
|
239
239
|
async init() {
|
|
240
240
|
try {
|
|
241
|
+
await geex.auth.init();
|
|
241
242
|
if (injector.get(import_angular_oauth2_oidc.OAuthService).hasValidAccessToken()) {
|
|
242
243
|
const subClient = injector.get(import_apollo_angular.Apollo).use("subscription");
|
|
243
244
|
subClient.subscribe({ query: GQL_ON_PUBLIC_NOTIFY }).pipe((0, import_rxjs.map)((res) => res?.data?.onPublicNotify)).subscribe((notify) => {
|
package/dist/index.mjs
CHANGED
|
@@ -122,7 +122,7 @@ function createAuthModule(injector) {
|
|
|
122
122
|
const module = {
|
|
123
123
|
init: async () => {
|
|
124
124
|
try {
|
|
125
|
-
|
|
125
|
+
const userData = await module.loadUserData();
|
|
126
126
|
user.set(userData ?? null);
|
|
127
127
|
} catch (err) {
|
|
128
128
|
console.error(err);
|
|
@@ -192,6 +192,7 @@ function createMessagingModule(injector) {
|
|
|
192
192
|
const module = {
|
|
193
193
|
async init() {
|
|
194
194
|
try {
|
|
195
|
+
await geex.auth.init();
|
|
195
196
|
if (injector.get(OAuthService).hasValidAccessToken()) {
|
|
196
197
|
const subClient = injector.get(Apollo).use("subscription");
|
|
197
198
|
subClient.subscribe({ query: GQL_ON_PUBLIC_NOTIFY }).pipe(map((res) => res?.data?.onPublicNotify)).subscribe((notify) => {
|