@passflow/core 0.49.1 → 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,29 @@
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
+
20
+ ### Version 0.49.2
21
+
22
+ Works with every Passflow server.
23
+
24
+ - Types: `PassflowGroup.default` is now optional (`default?: boolean`). The server leaves it out when the
25
+ group is not the tenant's default group. Code that reads it should treat a missing value as `false`;
26
+ `TenantUserMembership` already does.
27
+
5
28
  ### Version 0.49.1
6
29
 
7
30
  Works with every Passflow server.
@@ -1635,8 +1658,8 @@ const subscriber = {
1635
1658
  // Handle token refresh
1636
1659
  break;
1637
1660
  case "email-verification:required":
1638
- // signIn, signUp or resetPassword is waiting for the email to be proven.
1639
- // 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" }
1640
1663
  // challengeId is set when a code was emailed (finish with verifyEmailCode),
1641
1664
  // and absent when a link was emailed instead. email is set when the SDK knows it.
1642
1665
  break;