Skip to content

🔑 Token based authentication service for Angular with interceptor and multi-user support. Works best with devise token auth for Rails. Example:

License

Notifications You must be signed in to change notification settings

ashok1/angular-token

 
 

Repository files navigation

Notice

Original README

We needed to fork this repository as it is not being maintained anymore (according to the npm entry).

To make it installable trough npm i we needed to add additional scripts to package.json:

Build

"build:lib": "rm -rf ./dist && ng-packagr -p ./projects/angular-token/ng-package.json"

This will do a clean package compile to the ./dist/angular-token folder.

Release

"build:release": "npm run build:lib && tar -czvf ./dist/angular-token.tar.gz -C ./dist/angular-token ."

This will create a zipped tar file in ./dist/angular-token.tar.gz

Github release

After running a npm run build:release we'll need to create a release in github and attach the tar file to the release.

We can then use this new release using:

npm run build:lib
npm run build:release
npm i https://github.com/ashok1/angular-token/releases/download/released/angular-token.tar.gz

About

🔑 Token based authentication service for Angular with interceptor and multi-user support. Works best with devise token auth for Rails. Example:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 85.1%
  • HTML 11.2%
  • SCSS 2.0%
  • JavaScript 1.7%