@passflow/core 0.49.2 → 0.49.4

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
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.49.4
6
+
7
+ Works with every Passflow server.
8
+
9
+ - Types: `signUp` takes a user with a username and a password alone. `PassflowUserPayload` now needs at
10
+ least one of `email`, `phone_number` or `username`; before, it needed an email or a phone number.
11
+
12
+ ### Version 0.49.3
13
+
14
+ Works with every Passflow server. On a PKCE app the join's tokens come from the code exchange; from
15
+ Passflow server v0.156.0 that exchange continues the session, and on an older server it starts a new
16
+ one (new `sid`).
17
+
18
+ - Fixed: `joinInvitation` works on apps with PKCE on. It sends `code_challenge`, exchanges the code the
19
+ join answers with, and saves the tokens like a sign-in. Apps with PKCE off send the same request as
20
+ before.
21
+ - Fixed: when a join answers with an emailed code, the proof key is kept, so `verifyEmailCode` finishes
22
+ the join on a PKCE app.
23
+ - Types: `PassflowEmailVerificationOperation` gains `'join-invitation'`, the operation of an
24
+ `EmailVerificationRequired` event from `joinInvitation`. An exhaustive `switch` over that type stops
25
+ compiling until it handles the new member.
26
+
5
27
  ### Version 0.49.2
6
28
 
7
29
  Works with every Passflow server.
@@ -1643,8 +1665,8 @@ const subscriber = {
1643
1665
  // Handle token refresh
1644
1666
  break;
1645
1667
  case "email-verification:required":
1646
- // signIn, signUp or resetPassword is waiting for the email to be proven.
1647
- // source: { email?, challengeId?, operation: "sign-up" | "sign-in" | "reset-password" }
1668
+ // signIn, signUp, resetPassword or joinInvitation is waiting for the email to be proven.
1669
+ // source: { email?, challengeId?, operation: "sign-up" | "sign-in" | "reset-password" | "join-invitation" }
1648
1670
  // challengeId is set when a code was emailed (finish with verifyEmailCode),
1649
1671
  // and absent when a link was emailed instead. email is set when the SDK knows it.
1650
1672
  break;