Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reekoheek/xin-jwt
https://github.com/reekoheek/xin-jwt
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reekoheek/xin-jwt
- Owner: reekoheek
- License: mit
- Created: 2017-02-01T08:33:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-29T11:53:54.000Z (about 7 years ago)
- Last Synced: 2024-04-24T17:05:57.278Z (7 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - xin-jwt - JWT Middleware Component - [reekoheek](https://github.com/reekoheek) (Grouping / Xin)
README
# xin-jwt
JSON Web Token middleware for Xin
## Usage
We can use xin-jwt middleware as component inside template scope of App component instance directly
```html
```
Or programmatically
```javascript
import { App } from 'xin/components';
import JwtMiddleware from 'xin-jwt';class TheApp extends App {
created () {
super.created();this.use((new JwtMiddleware()).callback());
}
}define('the-app', TheApp)
```