@supertokens-plugins/rownd-nodejs 0.2.0 → 0.3.0-beta.0

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,26 @@ 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
+
47
67
  ## API Endpoint
48
68
 
49
69
  The plugin exposes a single endpoint: