@crossauth/fastify 1.0.1 → 1.1.1

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Crossauth common
2
2
  ================
3
3
 
4
- Copyright (c) 2024 Matthew Baker
4
+ Copyright (c) 2026 Matthew Baker
5
5
 
6
6
  Crossauth is a cross platform package for authentication.
7
7
  It has a Typescript version and soon also a Python and
@@ -44,7 +44,7 @@ export interface FastifySessionServerOptions extends SessionManagerOptions, OAut
44
44
  */
45
45
  createUserFn?: (request: FastifyRequest<{
46
46
  Body: SignupBodyType;
47
- }>, userEditableFields: string[], allowableFactor1: string[]) => UserInputFields;
47
+ }>, userEditableFields: string[], allowableFactor1: string[], allowableFactor2: string[]) => UserInputFields;
48
48
  /** Function that updates a user from form fields.
49
49
  * Default one takes fields that begin with `user_`, removing the `user_`
50
50
  * prefix and filtering out anything not in the userEditableFields list in
@@ -552,7 +552,7 @@ export declare class FastifySessionServer implements FastifySessionAdapter {
552
552
  */
553
553
  createUserFn: (request: FastifyRequest<{
554
554
  Body: SignupBodyType;
555
- }>, userEditableFields: string[], allowableFactor1: string[]) => UserInputFields;
555
+ }>, userEditableFields: string[], allowableFactor1: string[], allowableFactor2: string[]) => UserInputFields;
556
556
  /**
557
557
  * Funtion to update a user record from form fields. Taken from the options during
558
558
  * construction or the default value.