@authara/react-native 0.2.1 → 0.3.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
@@ -50,6 +50,20 @@ then each request retries once with `Authorization: Bearer …`.
50
50
  `baseUrl` must use HTTPS. Local development can explicitly opt in to HTTP with
51
51
  `allowInsecureHttp: true`; never enable it in production.
52
52
 
53
+ The package publishes ESM. Jest consumers must allow Babel to transform the
54
+ package, for example with `jest-expo`:
55
+
56
+ ```js
57
+ module.exports = {
58
+ preset: "jest-expo",
59
+ transformIgnorePatterns: [
60
+ "/node_modules/(?!(.pnpm|react-native|@react-native|@react-native-community|expo|@expo|@expo-google-fonts|react-navigation|@react-navigation|@sentry/react-native|native-base|standard-navigation|@authara/react-native))",
61
+ "/node_modules/react-native-reanimated/plugin/",
62
+ "/node_modules/@react-native/babel-preset/",
63
+ ],
64
+ };
65
+ ```
66
+
53
67
  ### Application API clients
54
68
 
55
69
  An application with its own authenticated API can read the current in-memory
@@ -242,6 +242,7 @@ export interface OrganizationInvitation {
242
242
  organization_id: string;
243
243
  email: string;
244
244
  role: OrganizationRole;
245
+ delivery_profile?: string;
245
246
  metadata: Record<string, unknown>;
246
247
  status: "pending" | "accepted" | "revoked" | "expired";
247
248
  expires_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authara/react-native",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Official React Native client, hooks, and native-provider buttons for Authara",
5
5
  "keywords": [
6
6
  "authentication",
@@ -29,23 +29,28 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "import": "./dist/index.js",
32
- "types": "./dist/index.d.ts"
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
33
34
  },
34
35
  "./expo-secure-store": {
35
36
  "import": "./dist/expo-secure-store.js",
36
- "types": "./dist/expo-secure-store.d.ts"
37
+ "types": "./dist/expo-secure-store.d.ts",
38
+ "default": "./dist/expo-secure-store.js"
37
39
  },
38
40
  "./expo-apple-authentication": {
39
41
  "import": "./dist/expo-apple-authentication.js",
40
- "types": "./dist/expo-apple-authentication.d.ts"
42
+ "types": "./dist/expo-apple-authentication.d.ts",
43
+ "default": "./dist/expo-apple-authentication.js"
41
44
  },
42
45
  "./nitro-google-signin": {
43
46
  "import": "./dist/nitro-google-signin.js",
44
- "types": "./dist/nitro-google-signin.d.ts"
47
+ "types": "./dist/nitro-google-signin.d.ts",
48
+ "default": "./dist/nitro-google-signin.js"
45
49
  },
46
50
  "./expo-microsoft-auth-session": {
47
51
  "import": "./dist/expo-microsoft-auth-session.js",
48
- "types": "./dist/expo-microsoft-auth-session.d.ts"
52
+ "types": "./dist/expo-microsoft-auth-session.d.ts",
53
+ "default": "./dist/expo-microsoft-auth-session.js"
49
54
  }
50
55
  },
51
56
  "files": [