Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@websanova/vue-auth

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@websanova/vue-auth - npm Package Compare versions

Comparing version 2.21.4-beta to 2.21.5-beta

21

docs/Privileges.md

@@ -22,2 +22,3 @@ # Privileges

* Must be an array of strings. For this to work both the checks need to be this way.
* The user must be logged in. Additionally the string or array will be checked against the users roles.

@@ -81,2 +82,18 @@ * Note that the users `roles` variable can be set in the options.

## Comparing Roles
The following user `role` to `$auth.check` or `meta.auth` combinations should work.
Note: An `Array` of `String` can be compared with a `String` and an `Object` with an `Object`. But not an `Array` of `Object`.
```
'user' => 'user'
'user' => ['user']
['user'] => 'user'
{role: 'user'} => {role: 'user'}
{role: 'user'} => {role: ['user']}
{role: ['user']} => {role: 'user'}
```
## Examples

@@ -105,3 +122,3 @@

'/private': {
auth: [{"people": "administrator", "people": "superadmin"}],
auth: {"people": "administrator", "products": "superadmin"},
component: require('./Account')

@@ -143,3 +160,3 @@ },

path: '/private',
meta: {auth: [{"people": "administrator", "people": "superadmin"}]},
meta: {auth: {"people": "administrator", "products": "superadmin"}},
component: require('./Account')

@@ -146,0 +163,0 @@ }, {

2

package.json

@@ -17,3 +17,3 @@ {

"version": "2.21.4-beta",
"version": "2.21.5-beta",

@@ -20,0 +20,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc