-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): package published on npm. Includes
- version: 0.0.1 published - add documentation in the README.md on how to install - set the configuration to deploy the package
- Loading branch information
1 parent
90fe5fa
commit 86bf38f
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# auth-init | ||
auth-init is an initializer that facilitates and accelerates the setup of projects with authentication using auth.js. It supports the three main frameworks offered by auth.js: | ||
# @halvaradop/auth-init | ||
@halvaradop/auth-init is an initializer that facilitates and accelerates the setup of projects with authentication using auth.js. It supports the three main frameworks offered by auth.js: | ||
- NextJs | ||
- SvelteKit | ||
- Express | ||
|
||
It simplifies the configuration to create a basic setup for using auth.js with your favorite framework, helping you focus on incorporating custom authentication configurations provided by auth.js. | ||
|
||
## Installation | ||
To install the initializer of authentication with Auth.js, you should install it via npm. For more information about [Auth.js](https://authjs.dev/), you can check their documentation. The command to install the package is: | ||
```bash | ||
npm i -g @halvaradop/auth-init | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
auth-init --help | ||
|
||
auth-init --secret | ||
auth-init --providers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"name": "auth-init", | ||
"version": "1.0.0", | ||
"name": "@halvaradop/auth-init", | ||
"version": "0.1.0", | ||
"main": "dist/index.js", | ||
"description": "CLI tool to initialize a project with auth.js", | ||
"bin": { | ||
"auth-init": "dist/index.js" | ||
}, | ||
"scripts": { | ||
"dev": "tsc -w", | ||
"build": "tsc", | ||
"link": "npm unlink auth-init && chmod +x dist/index.js && npm link auth-init", | ||
"link": "npm unlink @halvaradop/auth-init && chmod +x dist/index.js && npm link @halvaradop/auth-init", | ||
"uninstall": "npm uninstall @auth/express @auth/sveltekit next-auth", | ||
"start": "rm -rf auth.js && npm run uninstall && node dist/index.js" | ||
}, | ||
|
@@ -20,11 +23,11 @@ | |
"authentication", | ||
"authorization" | ||
], | ||
"author": "", | ||
"author": "Hernan Alvarado <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/halvaradop/auth-init-cli.git" | ||
"url": "git+https://github.com/halvaradop/auth-init.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/halvaradop/auth-init/issues" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"framework": "NextJs", | ||
"baseConfigPath": "auth.ts" | ||
} |