2.2.2 • Published 15 days ago
@projectfive/v-auth v2.2.2
Auth
Initialize
Install as Vue plugin with: app.use(Auth, { options })
Where options
is an object containing:
http
- axios instanceparams
- optional object containing extra parameters to add to api-requests. Example:params: { table: 'dealers' }}
Usage
States in setup
inject('auth')
- Refs containing Auth State. See Auth State for contents.inject('isAuthenticated')
- Computed boolean
Globalproperties in templates
$auth
- Refs containing Auth State. See Auth State for contents.$isAuthenticated
- Computed boolean
Exported data
- getAuthToken - function that returns auth token(s)
- methods - list of functions:
- loginWithIDP
- loginWithProvider
- logout
- resetPassword
- restoreSession
- smartlockGet
- smartlockSave
Auth State
The authorization state contains:
- token - current token as string
- tokens - array with valid tokens for this user (multi-session)
- user - object containing user data
- accounts - array containing session/user objects
2.2.2
15 days ago
2.2.1
29 days ago
2.2.0
29 days ago
2.1.7
29 days ago
2.1.6
5 months ago
2.1.5
5 months ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.4
1 year ago
2.1.3
1 year ago
2.1.0
1 year ago
2.0.3
1 year ago
2.0.4
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.32
2 years ago
1.0.31
2 years ago
1.0.29
2 years ago
1.0.30
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.26
2 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.11
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.10
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago