wellcomecollection / identity

Identity services for Wellcome Collection users
MIT License
0 stars 2 forks source link

adding pin to createPatron #321

Closed melanierogan closed 2 years ago

melanierogan commented 2 years ago

A user needs their password to be set on sierra, we can now do this at point of patron creation in create script.

Updated Note: Based on a nifty suggestion by David I've added a new Auth0 type that contains password.

Note: ~I've temporarily put a ts-ignore in for user.password as I can't see how to type this within the current existing type for Auth0User shown below, if anyone has any guidance on how best to type in this context it would be greatly appreciated. Auth0 docs suggest that password is available from Auth0User.~

 export type Auth0User = WithRequiredFields<
  User<AppMetadata, UserMetadata>,
  'user_id' | 'email' // These fields are always present
>;

related to work on https://github.com/wellcomecollection/wellcomecollection.org/issues/8071, https://github.com/wellcomecollection/wellcomecollection.org/issues/8072 and https://github.com/wellcomecollection/wellcomecollection.org/issues/7896