groundmail-authjs 0.0.0-stage → 0.14.2

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
@@ -1,3 +1,44 @@
1
- # Temporary Holding Version
1
+ # groundmail-authjs
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Auth.js / NextAuth magic-link email** via [Groundmail](https://groundmail.dev).
4
+
5
+ Drop-in email provider — same shape as other Auth.js email providers. Requires a [database adapter](https://authjs.dev/getting-started/database) (Auth.js stores verification tokens).
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install groundmail-authjs groundmail next-auth
11
+ ```
12
+
13
+ ```bash
14
+ # Auth.js-style env name, or our standard key name
15
+ AUTH_GROUNDMAIL_KEY=gm_your_key_here
16
+ # GROUNDMAIL_API_KEY=gm_your_key_here
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```ts
22
+ import NextAuth from 'next-auth'
23
+ import Groundmail from 'groundmail-authjs'
24
+
25
+ export const { handlers, auth, signIn, signOut } = NextAuth({
26
+ adapter: /* your database adapter */,
27
+ providers: [
28
+ Groundmail({
29
+ from: 'noreply@yourdomain.com',
30
+ // apiKey picked up from AUTH_GROUNDMAIL_KEY or GROUNDMAIL_API_KEY
31
+ }),
32
+ ],
33
+ })
34
+ ```
35
+
36
+ Also available as `import Groundmail from 'groundmail/authjs'`.
37
+
38
+ ## Docs
39
+
40
+ https://docs.groundmail.dev/guides/authjs
41
+
42
+ ## License
43
+
44
+ MIT
@@ -0,0 +1 @@
1
+ export { AuthjsEmailConfig, AuthjsTheme, GroundmailAuthjs, GroundmailAuthjsOptions, GroundmailAuthjs as default } from 'groundmail/authjs';
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // src/index.ts
2
+ import {
3
+ GroundmailAuthjs,
4
+ GroundmailAuthjs as GroundmailAuthjs2
5
+ } from "groundmail/authjs";
6
+ export {
7
+ GroundmailAuthjs,
8
+ GroundmailAuthjs2 as default
9
+ };
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "groundmail-authjs",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.14.2",
4
+ "description": "Groundmail email provider for Auth.js / NextAuth (magic-link sign-in)",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Groundmail/groundmail-authjs.git"
22
+ },
23
+ "homepage": "https://docs.groundmail.dev/guides/authjs",
24
+ "bugs": {
25
+ "url": "https://github.com/Groundmail/groundmail-authjs/issues"
26
+ },
27
+ "keywords": [
28
+ "auth.js",
29
+ "authjs",
30
+ "next-auth",
31
+ "nextauth",
32
+ "email",
33
+ "magic-link",
34
+ "transactional",
35
+ "groundmail",
36
+ "authentication"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "engines": {
42
+ "node": ">=18"
43
+ },
44
+ "peerDependencies": {
45
+ "groundmail": ">=0.13.0"
46
+ },
47
+ "devDependencies": {
48
+ "groundmail": "0.14.2",
49
+ "tsup": "^8.5.0",
50
+ "typescript": "^5",
51
+ "vitest": "^3.2.4"
52
+ },
53
+ "scripts": {
54
+ "build": "tsup src/index.ts --format esm --dts --clean",
55
+ "test": "vitest run",
56
+ "prepublishOnly": "npm run build"
57
+ }
58
+ }