allex_userresolverservice

UserResolverService

Usage no npm install needed!

<script type="module">
  import allexUserresolverservice from 'https://cdn.skypack.dev/allex_userresolverservice';
</script>

README

UserResolverService

Works like this:

  1. Needs a data hash in its constuctor propertyhash, like
{
    data: {
      modulename: 'allex__somenamespace_usertableservice'
    }
}
  1. In the constructor a static subservice sink will be acquired, named 'db', sinking the instance of propertyhash.data.modulename instantiated with the very data hash as the propertyhash.

  2. user role will expose methods

    • resolveUser
    • fetchUser
    • registerUser
    • usernamesLike
    • usernameExists
  3. The methods exposed above will be usable through the EntryPoint instance of the allex_entrypointservice (or its child), via http calls.