@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 +1 -1
- package/dist/runtime/types.d.ts +7 -4
- package/dist/runtime/types.js +2 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/runtime/types.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
300
|
+
username: z.ZodString;
|
|
301
|
+
isRegistered: z.ZodLiteral<true>;
|
|
299
302
|
}, {
|
|
300
303
|
out: {};
|
|
301
304
|
in: {};
|
package/dist/runtime/types.js
CHANGED
|
@@ -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()
|
|
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";
|