@nlutilities/auth v0.0.33
Test branch
@nlutilities/auth
Helper library for the Northern Lights package that handles all aspects of authentication.
Installation
The @nlutilities/auth
module can be installed using either npm
rom the command line.
npm install @nlutilities/auth
or using yarn
yarn add @nlutilities/auth
Usage
const auth = require('@nlutilities/auth');
// TODO: DEMONSTRATE API
Development
Checkout the @nlutilities
source repository to your local environment.
Local development uses yarn link
to embed this project into a client project. Create
your project locally using either create-next-app
or create-next-app
in a separate project
folder.
Link the library to your client. Navigate to the @nlutilities/auth
directory
cd /path/to/nlutilities/packcages/auth
then
yarn link
In a separate terminal, navigate to the client project
cd /path/to/my-react-project
Set up the link within the client project. This will tell yarn to use the local version of the project dependency instead of the remote library.
yarn link @nlutilities/auth
To enable live reloading, navigate back to the library directory and run
yarn watch
In your other terminal, start your dev server.
yarn dev
Get building!
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago