@witchcraft/nuxt-auth 0.6.0-beta.5 → 0.6.0-beta.6

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "auth",
3
3
  "configKey": "auth",
4
- "version": "0.6.0-beta.5",
4
+ "version": "0.6.0-beta.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
@@ -255,17 +255,20 @@ export declare const zAuthUserLocalStored: z.ZodObject<{
255
255
  out: {};
256
256
  in: {};
257
257
  }>;
258
+ /**
259
+ * External user that main wrote to a window. Registration happens before the deeplink opens, so it always has a username and is registered.
260
+ */
258
261
  export declare const zAuthUserExternalStored: z.ZodObject<{
259
262
  id: z.ZodUUID;
260
263
  email: z.ZodString;
261
264
  emailVerified: z.ZodBoolean;
262
265
  name: z.ZodString;
263
266
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
- isRegistered: z.ZodBoolean;
265
267
  createdAt: z.ZodString;
266
268
  updatedAt: z.ZodString;
267
269
  type: z.ZodOptional<z.ZodLiteral<"external">>;
268
- username: z.ZodNullable<z.ZodString>;
270
+ username: z.ZodString;
271
+ isRegistered: z.ZodLiteral<true>;
269
272
  }, {
270
273
  out: {};
271
274
  in: {};
@@ -291,11 +294,11 @@ export declare const zAuthUserStored: z.ZodDiscriminatedUnion<[z.ZodObject<{
291
294
  emailVerified: z.ZodBoolean;
292
295
  name: z.ZodString;
293
296
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
- isRegistered: z.ZodBoolean;
295
297
  createdAt: z.ZodString;
296
298
  updatedAt: z.ZodString;
297
299
  type: z.ZodOptional<z.ZodLiteral<"external">>;
298
- username: z.ZodNullable<z.ZodString>;
300
+ username: z.ZodString;
301
+ isRegistered: z.ZodLiteral<true>;
299
302
  }, {
300
303
  out: {};
301
304
  in: {};
@@ -40,7 +40,8 @@ export const zAuthUserLocalStored = zAuthUserStoredBase.extend({
40
40
  });
41
41
  export const zAuthUserExternalStored = zAuthUserStoredBase.extend({
42
42
  type: z.optional(z.literal("external")),
43
- username: z.string().nullable()
43
+ username: z.string(),
44
+ isRegistered: z.literal(true)
44
45
  });
45
46
  export const zAuthUserStored = z.discriminatedUnion("type", [zAuthUserLocalStored, zAuthUserExternalStored]);
46
47
  export const externalExpiryStorageKey = "auth:external:expiresAt";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/nuxt-auth",
3
- "version": "0.6.0-beta.5",
3
+ "version": "0.6.0-beta.6",
4
4
  "description": "Nuxt module for logging.",
5
5
  "repository": {
6
6
  "type": "git",