@preelio/auth
v1.0.6
Published
# Installing
Downloads
4
Readme
Preel Auth
Installing
1. Configure .npmrc file
registry=https://{NEXUS_URL}
always-auth=true
//{NEXUS_URL}/:_authToken={NEXUS_TOKEN}
2. Install package
npm i @preel/authUsage
1. Import
import {PreelAuth} from 'preel-auth'2. Configuring
const preelAuth = new PreelAuth({
baseUrl: 'https://example.com/api',
storage: storage, // Optional
})
// If storage is not provided will be used default Cookie storage3. Example
await preelAuth.registerNewUser(user)