# Email & password authentication with accounts-js and Apollo Server

DevFeed: [Email & password authentication with accounts-js and Apollo Server](<https://devfeed.tech/articles/email-password-authentication-with-accounts-js-and-apollo-server-23281.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/email-password-authentication-with-accounts-js>)

Author: Leo Pradel

Published: 2020-05-26T10:59:14Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [API](<https://devfeed.tech/topics/api.md>), [apollo-server](<https://devfeed.tech/topics/apollo-server.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apollo](<https://devfeed.tech/tags/apollo.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [backend](<https://devfeed.tech/tags/backend.md>), [email](<https://devfeed.tech/tags/email.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [password](<https://devfeed.tech/tags/password.md>), [server](<https://devfeed.tech/tags/server.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

A tutorial on implementing email-and-password authentication for a GraphQL API using accounts-js, NodeJS, Apollo Server, and MongoDB. It covers project setup, dependency installation, schema integration, user registration, and authentication.

## Source excerpt

accounts-js is a fullstack authentication and accounts-management for Javascript. We provide you with a set of tools to authenticate and manage your users in your application. These tools work with REST, GraphQL and are database agnostic. We will implement the Authentication GraphQL API in NodeJS using accounts-js and Apollo. At the end of this article, our server will be able to sign up new users, allow the users to login and authenticate them to protect some restricted information.