authsense v0.4.1 Authsense.MultipleResourcesException exception

When a single resource is configured for Authsense, it will automatically use that resource for function calls that need it, such as Authsense.Service.generate_hashed_password/2.

However, when multiple resources are configured, this exception will be raised for functions that require a resource module as Authsense will not be able to determine which resource to use for that call.

This can be avoided by providing the correct resource module to be used, e.g.,

Authsense.Service.generate_hashed_password(changeset, User)

Summary

Functions

Callback implementation for c:Exception.exception/1

Callback implementation for c:Exception.message/1

Functions

exception(msg)

Specs

exception(String.t) :: Exception.t
exception(Keyword.t) :: Exception.t

Callback implementation for c:Exception.exception/1.

message(exception)

Specs

message(Exception.t) :: String.t

Callback implementation for c:Exception.message/1.