Convos::Plugin::Auth - Convos plugin for handling authentication

  1. DESCRIPTION
  2. HELPERS
    1. auth.login_p
    2. auth.logout
    3. auth.register
  3. METHODS
    1. register
  4. SEE ALSO

DESCRIPTION

Convos::Plugin::Auth is used to register, login and logout a user. This plugin is always loaded by Convos, but you can override the "HELPERS" with a custom auth plugin if you like.

Note that this plugin is currently EXPERIMENTAL. Let us know if you are/have created a custom plugin.

HELPERS

auth.login_p

$p = $c->auth->login_p(\%credentials)->then(sub { my $user = shift });

Used to login a user. %credentials normally contains an email and password.

auth.logout

$p = $c->auth->logout_p({});

Used to log out a user.

auth.register

$p = $c->auth->register(\%credentials)->then(sub { my $user = shift });

Used to register a user. %credentials normally contains an email and password.

METHODS

register

$auth->register($app, \%config);

SEE ALSO

Convos