@passflow/core 0.49.2 → 0.49.3

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