@howdypix/server

0.1.2-alpha.0 • Public • Published

@howdypix/app-server

This process is responsible to:

  • Watch the file changes
  • Send to the workers what files to process
  • Maintain the database of photos
  • Expose a GraphQL endpoint to fetch the photos

Authentication

The authentication is made with a JWT token attached to every request to the server. If the token is not valid (expired, or invalid), then the client is able to request another token thanks to its refreshToken.

To authenticate a GraphQL query, you just need add then authenticate parameter to the Query, as such:

queryField("myQuery", {
  // If the user is null, the request is not authenticated.
  authorize: (root, args, ctx) => !!ctx.user

  // ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i @howdypix/server

Weekly Downloads

1

Version

0.1.2-alpha.0

License

MIT

Unpacked Size

123 kB

Total Files

70

Last publish

Collaborators

  • anomen