authService

command module
v0.0.0-...-ecac287 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 7 Imported by: 0

README

User Authentication Service

Implementation of a user authentication service using JSON Web Tokens (JWT). More information on JWT can be found here. This service is based on GraphQL, all information on the service itself can be found under "graph/model/schema.graphqls" or equivalently here. The application contains the bare minimum to allow for extension. You can see the code in this repository as template code for a more sophisticated user authentication service.

Prereqs

  1. A MongoDB server in Atlas or running on a Docker container or on a separate server
  2. A .env file containing the following:
    1. "DB" containing the URI to the Mongo database
    2. "KEY" to sign the tokens
    3. "DBNAME" with the name of the database to connect
    4. "COLLECTION" with the name of the collection

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL