nuxt-auth-utils 0.5.15 → 0.5.16

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-utils",
3
3
  "configKey": "auth",
4
- "version": "0.5.15",
4
+ "version": "0.5.16",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -35,6 +35,7 @@ export function defineOAuthKeycloakEventHandler({
35
35
  return sendRedirect(
36
36
  event,
37
37
  withQuery(authorizationURL, {
38
+ ...query,
38
39
  client_id: config.clientId,
39
40
  redirect_uri: redirectURL,
40
41
  scope: config.scope.join(" "),
@@ -0,0 +1,5 @@
1
+ import type { WebAuthnAuthenticateEventHandlerOptions, WebAuthnCredential } from '#auth-utils';
2
+ export declare function defineWebAuthnAuthenticateEventHandler<T extends WebAuthnCredential>({ storeChallenge, getChallenge, getCredential, allowCredentials, getOptions, onSuccess, onError, }: WebAuthnAuthenticateEventHandlerOptions<T>): import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<void | import("@simplewebauthn/server").VerifiedAuthenticationResponse | {
3
+ requestOptions: import("@simplewebauthn/types").PublicKeyCredentialRequestOptionsJSON;
4
+ attemptId: string;
5
+ }>>;
@@ -0,0 +1,8 @@
1
+ import type { H3Event } from 'h3';
2
+ import type { WebAuthnUser, WebAuthnRegisterEventHandlerOptions } from '#auth-utils';
3
+ import type { ValidateUserFunction } from '~/src/runtime/types/webauthn';
4
+ export declare function defineWebAuthnRegisterEventHandler<T extends WebAuthnUser>({ storeChallenge, getChallenge, getOptions, validateUser, excludeCredentials, onSuccess, onError, }: WebAuthnRegisterEventHandlerOptions<T>): import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<void | import("@simplewebauthn/server").VerifiedRegistrationResponse | {
5
+ creationOptions: import("@simplewebauthn/types").PublicKeyCredentialCreationOptionsJSON;
6
+ attemptId: string;
7
+ }>>;
8
+ export declare function validateUserData<T>(userBody: WebAuthnUser, event: H3Event, fn: ValidateUserFunction<T>): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auth-utils",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "Add Authentication to Nuxt applications with secured & sealed cookies sessions.",
5
5
  "repository": {
6
6
  "type": "git",