@mayurajs/auth-neon 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -28,9 +28,8 @@ const authenticate = neonAuthAuthenticator({
28
28
  `banExpires` or one still ahead) is refused.
29
29
  - **What you get.** `identity` receives the user: `userId`, `email`, `emailVerified`, `name`, `role`, and the raw
30
30
  `claims`. Nothing is granted unless `identity` grants it.
31
- - **Getting a token.** In your app, Neon's client gives the JWT with `authClient.token()`, or in the `set-auth-jwt`
32
- header of `getSession()`; send it to Mayura's server as a bearer token. Tokens last 15 minutes.
33
- - Applications still on the earlier Stack Auth-based Neon Auth use `@mayurajs/auth-hexclave`.
31
+ - **Getting a token.** In your app, Neon's client gives the JWT as `data.token` from `authClient.token()`, or in the
32
+ `set-auth-jwt` header of `getSession()`; send it to Mayura's server as a bearer token. Tokens last 15 minutes.
34
33
  - Options: `authUrl`, `identity`, `clockSkewMs` (5 s), `maxIdentityMs` (60 s), `fetch`.
35
34
 
36
35
  See [Authentication and API keys](https://mayurajs.com/docs/guides/authentication/). Apache-2.0.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mayurajs/auth-neon",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Neon Auth (managed better-auth) JWTs as Mayura server identities, verified with your project's published keys.",
5
5
  "author": {
6
6
  "name": "Aryabh",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "dependencies": {},
38
38
  "peerDependencies": {
39
- "mayura": "^1.1.0"
39
+ "mayura": "^1.2.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",