# laravel-passport-session-store

> Laravel passport session store

Latest version **1.0.2** (published 2021-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-passport-session-store
pnpm add laravel-passport-session-store
yarn add laravel-passport-session-store
bun add laravel-passport-session-store
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-03-07 |
| First published | 2021-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juan Manuel Cruz |
| Maintainers | malows |
| Keywords | laravel, passport, oauth, vuex |

## Links

- npm: https://www.npmjs.com/package/laravel-passport-session-store
- Repository: https://github.com/Malows/laravel-passport-session-store
- Issues: https://github.com/Malows/laravel-passport-session-store/issues
- npm.io page: https://npm.io/package/laravel-passport-session-store

## Dependencies (1)

- [date-fns](https://npm.io/package/date-fns.md) ^2.19.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@oxyhq/services](https://npm.io/package/@oxyhq/services.md) — 2.3K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-03-07
- 1.0.1 — 2021-03-05
- 1.0.0 — 2021-03-05

## README

# laravel-passport-session-store

## Install
```sh
yarn add -D laravel-passport-session-store
# or
npm install -D laravel-passport-session-store
```

## Usage
```javascript
import makeSessionModule from 'laravel-passport-session-store'

new Vuex.Store({
    ...

    modules: {
      session: makeSessionModule({
        prefix: 'my_app',
        clientSecret: 'abc123',
        clientID: 1,
        url: 'http://localhost:8000', // default
        profileURI: '/api/user', // default
        oauthURI: '/oauth/token' // default
      }),

      ...

    },

    ...

})
```
The store module is namespaced and contains four actions
- `dispatch('session/login', { username, password })`
- `dispatch('session/logout')`
- `dispatch('session/fetchUserData')`
- `dispatch('session/checkSession')`

---
_Source: https://npm.io/package/laravel-passport-session-store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
