From dfb3fd8ea6e1fda9003729c9d320eaf593b7b451 Mon Sep 17 00:00:00 2001 From: Alex Harris Date: Sat, 23 Mar 2019 12:16:17 -0700 Subject: [PATCH 1/3] Updated some docs to reflect new fields in User schema --- doc/login.md | 10 ++++++++++ doc/selfGet.md | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/login.md b/doc/login.md index c5acdb1..2c7f5df 100644 --- a/doc/login.md +++ b/doc/login.md @@ -29,6 +29,16 @@ Returns session token for existing User on succesful login. ```json { + "user": { + "_id": "[user ID]", + "email": "[email]", + "password": "[hashed password]", + "type": "[user type]", + "verified": true, + "created_at": "[account creation date]", + "updated_at": "[last account update]", + "__v": 0 + }, "iat": "[Token issued at]", "exp": "[Token expiry]", "token": "[JWT token]" diff --git a/doc/selfGet.md b/doc/selfGet.md index 89b5c71..72fe92b 100644 --- a/doc/selfGet.md +++ b/doc/selfGet.md @@ -25,7 +25,10 @@ Returns corresponding user given JWT token. "email": "[User email]", "password": "[User password]", "type": "[User type]", - "verified": true + "verified": true, + "created_at": "[account creation date]", + "updated_at": "[last account update]", + "__v": 0 } ``` From 529ac6b2e90355e57fcafdf0e0f498b5c0b33a50 Mon Sep 17 00:00:00 2001 From: Alex Harris Date: Sun, 24 Mar 2019 02:13:03 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=85=B1=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 47545f4..3e2dc3e 100644 --- a/src/index.html +++ b/src/index.html @@ -14,7 +14,7 @@ -

👮 Welcome to the Jobhub Authentication Microservice 👮

+

👮 Welcome to the Jo🅱️hu🅱️ Authentication Microservice 👮

Please consult our repo for endpoint information.

From 3cdafae6aa31c6d27ebe13162cae7818e6050f2d Mon Sep 17 00:00:00 2001 From: Alex Harris Date: Sun, 24 Mar 2019 22:38:01 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 71014cb..4239674 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Authentication - Jobhub +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f193348b2004466ba69f53bec6f9de9a)](https://www.codacy.com/app/alexH2456/authentication?utm_source=github.com&utm_medium=referral&utm_content=scrum-gang/authentication&utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.com/scrum-gang/authentication.svg?branch=master)](https://travis-ci.com/scrum-gang/authentication) [![Coverage Status](https://coveralls.io/repos/github/scrum-gang/authentication/badge.svg?branch=master)](https://coveralls.io/github/scrum-gang/authentication?branch=master)