GithubHelp home page GithubHelp logo

andy9775 / accounts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scaphold-io/accounts

0.0 2.0 0.0 481 KB

Fullstack authentication and accounts-management for GraphQL and REST.

License: MIT License

JavaScript 100.00%

accounts's Introduction

accounts

Fullstack authentication and accounts-management for GraphQL and REST

npm Circle CI Coverage Status MIT License

Copyright (c) 2016 by Gadi Cohen & Tim Mikeladze. Released under the MIT license.

Note

This package, along with the rest of the packages under the js-accounts organization are under active development and are not ready for consumption.

Getting Started

Install the core package.

npm i -S @accounts/server

Next install the package based on the the type of transport and the web framework you are using. We support GraphQL and REST for the transport and Express.

npm i -S @accounts/rest-express

Finally you'll need a data store adapter. We support the following data stores.

npm i -S @accounts/mongo
npm i -S @accounts/redis
npm i -S @accounts/sql

Example

You can find a working example here.

Emails

Configuration:

AccountsServer.config({
 siteUrl: 'https://my-app.com',
 email: // a valid email config object passed to emailjs
 // https://github.com/eleith/emailjs#example-usage---text-only-emails
 // You can handle the send of the emails by providing an optional sendMail function
 // sendMail: ({ from, to, text, html }): Promise<void>
});

To overwrite the email templates:

AccountsServer.emailTemplates.from = 'my-app <[email protected]>';
AccountsServer.emailTemplates.verifyEmail.subject = (user) => `Verify your account email ${user.profile.lastname}`;
AccountsServer.emailTemplates.verifyEmail.text = (user, url) => `To verify your account email please click on this link: ${url}`;

accounts's People

Contributors

davidyaha avatar dotansimha avatar gadicc avatar kylescharnhorst avatar pradel avatar timmikeladze avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.