Skip to content

v3.1.0

Compare
Choose a tag to compare
@salte-bot salte-bot released this 08 May 02:24

3.1.0 (2020-05-07)

Features

All the Extra Parameters!

Unfortunately as part of the move from 2.x -> 3.x we accidentally removed support for providing extra query parameters.

Well, fret not because the feature is back once again and with a bit of extra functionality!

const auth = new SalteAuth({
  providers: [
    new Auth0({
      // ...

      // The type parameter is 'login' when a login occurs 
      // and 'logout' when a logout occurs.
      queryParams: (type) => type === 'login' ? { hello: 'world' } : null,
    });
  ],

  // ...
});