1.0.0 • Published 6 years ago

@lgslabs/bits-scopes-util v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

BITS Scopes Utility

BITS Scopes Utility is a package meant to determine the validity of scopes in the BITS framework.

Valid Scopes

  • null
    • Only able to be requested by server-side entities (trusted)
  • []
    • Everyone can access (public)
  • ['test']
    • Only entities with "test" scope can access
  • ['test', 'double_test']
    • Only entities with "test" AND "double_test" scopes can access

Invalid Scopes

  • undefined
  • Non-array values
  • Array values containing non-string entries
1.0.0

6 years ago