@tansy/social-sign-in 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +12 -2
- package/index.d.ts +6 -0
- package/index.js +21 -0
- package/package.json +27 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mohamed Salah
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- Generated by scripts/package-metadata.mjs. Change that script, not this file. -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# @tansy/social-sign-in
|
|
4
|
+
|
|
5
|
+
Sign in to tansy with Google, GitHub and other OAuth providers, each configured on the dashboard.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @tansy/social-sign-in
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Add it to `tansy.config.ts`. See [the social-sign-in plugin documentation](https://github.com/mhmdsalahsebai/tansy/blob/main/docs/plugins/social-sign-in.md) for what it adds and the options it takes.
|
|
12
|
+
|
|
13
|
+
A first-party plugin for [tansy](https://github.com/mhmdsalahsebai/tansy), a self-hosted, runtime-schema CMS for Next.js. MIT licensed.
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sign-in through these providers, each configured under Settings, OAuth. Remove
|
|
3
|
+
* this from tansy.config.ts to offer none. For one better-auth has no built-in
|
|
4
|
+
* support for, add its generic OAuth plugin under `plugins`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const socialSignIn: () => import("tansy/plugin").CmsPlugin;
|
package/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { definePlugin } from "tansy/plugin";
|
|
2
|
+
/**
|
|
3
|
+
* Sign-in through these providers, each configured under Settings, OAuth. Remove
|
|
4
|
+
* this from tansy.config.ts to offer none. For one better-auth has no built-in
|
|
5
|
+
* support for, add its generic OAuth plugin under `plugins`.
|
|
6
|
+
*/
|
|
7
|
+
export const socialSignIn = () => definePlugin({
|
|
8
|
+
name: "social-sign-in",
|
|
9
|
+
version: "0.1.0",
|
|
10
|
+
apiVersion: 1,
|
|
11
|
+
auth: {
|
|
12
|
+
oauthProviders: [
|
|
13
|
+
{ id: "google", label: "Google" },
|
|
14
|
+
{ id: "github", label: "GitHub" },
|
|
15
|
+
{ id: "microsoft", label: "Microsoft" },
|
|
16
|
+
{ id: "gitlab", label: "GitLab" },
|
|
17
|
+
{ id: "discord", label: "Discord" },
|
|
18
|
+
{ id: "facebook", label: "Facebook" },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tansy/social-sign-in",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Sign in to tansy with Google, GitHub and other OAuth providers, each configured on the dashboard.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tansy",
|
|
7
|
+
"tansy-plugin",
|
|
8
|
+
"cms",
|
|
9
|
+
"nextjs"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Mohamed Salah <mohamedsalahsebai@gmail.com>",
|
|
13
|
+
"homepage": "https://github.com/mhmdsalahsebai/tansy",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/mhmdsalahsebai/tansy.git",
|
|
17
|
+
"directory": "plugins/social-sign-in"
|
|
18
|
+
},
|
|
19
|
+
"bugs": "https://github.com/mhmdsalahsebai/tansy/issues",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"tansy": "^0.1.0"
|
|
28
|
+
}
|
|
29
|
+
}
|