Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reekoheek/xin-jwt


https://github.com/reekoheek/xin-jwt

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

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)
```