Skip to content

Releases: accounts-js/accounts

v0.22.0

13 Feb 17:14
Compare
Choose a tag to compare

0.22.0 (2020-02-13)

⚠ BREAKING CHANGES

  • server: unify ConnectionInformations arguments (#887)

Features

  • graphql-client: throw a descriptive error (#826) 74fe906

Code Refactoring

  • server: unify ConnectionInformations arguments (#887) 011331e
  • types: changes types folder structure (#888) 7a6b6b0

Documentation

Miscellaneous Chores

  • graphql-client: name the getUser mutation (#892) 60c26cf
  • setup conventional-changelog config (#886) df244d3
  • deps: update dependency @graphql-modules/core to v0.7.14 301fe77
  • deps: update dependency @types/ioredis to v4.14.6 2a731fc

v0.21.1

29 Jan 14:45
Compare
Choose a tag to compare

Features

  • server: allow tokenSecret to accept a pair of public / private key (#853) @huikaihoo

Docs

Internal

  • prettierignore the generated graphql models (#876) @pradel

v0.21.0

13 Jan 11:05
Compare
Choose a tag to compare

The REST example has been updated to show the features of accounts-js and to demonstrate how you can use it in your codebase.

Some screenshots:
localhost_3000_security (2)
localhost_3000_emails_ (3)
localhost_3000_security

Features

  • [@accounts/password] Expose addEmail to the client (#874) @pradel

Examples

  • Improved REST example with a new design and more features (#864) @pradel
  • REST example: expose a login and logout function from the AuthContext (#873) @pradel

v0.20.1

13 Dec 12:57
Compare
Choose a tag to compare

Features

  • feat(accounts-password): send verification email after signup (#828) @sakulstra

Bug fixes

v0.20.0

12 Nov 15:08
Compare
Choose a tag to compare

Features

Docs

  • Separate Rest documentation to Express and Client (#779) @pradel
  • Update the documentation from the corresponding microservice example (#817) @bbenoist
  • [Docs] upgrade docusaurus to 2.0.0-alpha.34 (#851)

Examples

  • Update the graphql example to show how to get the user from the context (#830) @pradel
  • Show how to use login hooks on the graphql example (#833) @pradel
  • Update rest server example to show how to use some accounts-js options (#834) @pradel

Internal

v0.19.0

27 Aug 17:02
Compare
Choose a tag to compare

⚠️ Breaking change

We decided to remove the client side hashing of the password by default. It does not provide more security if you use https, and is leading to some confusion.

In order to migrate to not break the login and registering of your existing user you will need to follow this migration:

First you will need to install the crypto-js npm library:

# With yarn
yarn add crypto-js
# Or if you use npm
npm install crypto-js --save

Then setup the hashPassword option:

import { SHA256 } from 'crypto-js';
import { AccountsClient } from '@accounts/client';
import { AccountsClientPassword } from '@accounts/client-password';
const accountsClient = new AccountsClient({});
const accountsPassword = new AccountsClientPassword(accountsClient, {
  hashPassword: password => {
    // Here we hash the password on the client before it's sent to the server
    const hashedPassword = SHA256(password);
    return hashedPassword.toString();
  },
});

Features

  • [@accounts/client-password] Remove client hashing of the password (#780) @pradel

Internal

v0.18.0

20 Aug 14:38
Compare
Choose a tag to compare

Features

  • [@accounts/password] Add invalidateAllSessionsAfterPasswordReset and invalidateAllSessionsAfterPasswordChanged options (#773) @NazarYablonskiy

Docs

  • Create basic react-native integration guide (#770) @pradel
  • Create an Introduction and contributing doc file (#758) @pradel
  • Fix @accounts/apollo-link documentation (#769) @pradel

v0.17.0

01 Aug 17:17
Compare
Choose a tag to compare

Features

  • [@accounts/apollo-link] Feature apollo link refresh token (#756) @elie222
  • [@accounts/passowrd] ResetPasswordSuccess and ChangePasswordSuccess server hooks have been added #754 @NazarYablonskiy
  • [@accounts/passowrd] Call validatePassword options when changePassword is executed (#750) @pradel

Docs

Examples

Internal

  • Fix test command (#755) @elie222
  • [@accounts/password] Save one db query during the changePassword call (#759) @pradel
  • [@accounts/client] Save on call to isTokenExpiredwhen executing refreshSession (#766) @pradel

v0.16.0

29 Jul 14:45
Compare
Choose a tag to compare

Features

  • Allow GET request for /user & Handle path option being a slash (#708) @stevokk

Docs

Examples

Internal

v0.15.0

17 May 08:05
Compare
Choose a tag to compare