@supertokens-plugins/rownd-nodejs 0.2.1 → 0.3.0-beta.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
@@ -44,6 +44,39 @@ SuperTokens.init({
44
44
  });
45
45
  ```
46
46
 
47
+ ### Session Claim Fields
48
+
49
+ Schema fields can be copied into the SuperTokens access-token payload by setting `include_in_session_claims: true`. Use `session_claim_name` when the claim name should differ from the Rownd data field name.
50
+
51
+ ```typescript
52
+ RowndMigrationPlugin.init({
53
+ rowndAppKey: process.env.ROWND_APP_KEY,
54
+ rowndAppSecret: process.env.ROWND_APP_SECRET,
55
+ schema: {
56
+ employee_id: {
57
+ display_name: "Employee ID",
58
+ type: "string",
59
+ user_visible: false,
60
+ include_in_session_claims: true,
61
+ session_claim_name: "employee_id_claim",
62
+ },
63
+ },
64
+ });
65
+ ```
66
+
67
+ ### Mobile Deep Links
68
+
69
+ Set `mobileDeepLinkBaseUrl` to rewrite mobile-context account links to a native deep link target. The value must be an absolute URL base, such as a custom scheme or HTTPS universal/app link domain.
70
+
71
+ ```typescript
72
+ RowndMigrationPlugin.init({
73
+ rowndAppKey: process.env.ROWND_APP_KEY,
74
+ rowndAppSecret: process.env.ROWND_APP_SECRET,
75
+ mobileDeepLinkBaseUrl: "customDomain://",
76
+ // or: mobileDeepLinkBaseUrl: "https://links.example.com",
77
+ });
78
+ ```
79
+
47
80
  ## API Endpoint
48
81
 
49
82
  The plugin exposes a single endpoint: