riverrun / phauxth

Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications
409 stars 20 forks source link

Made the options for endpoint and token_salt more umbrella-friendly a… #31

Closed riverrun closed 7 years ago

riverrun commented 7 years ago

…nd made

sure that the key generator options are passed on to the Token module.

The endpoint and token_salt config values can now be overridden by using keyword arguments. This is especially useful when the same config applies to several apps, as in the case with umbrella apps.

Previously, the key generator options for signing and verifying tokens were not being passed on from the Authenticate, or Confirm module, to the Token module. This has been fixed, and so in these modules, the developer can set different options for the keys.