observe_auth_client_logon_user/2

Send a request to the client to login a user. The zotonic.auth.worker.js will

send a request to controller_authentication to exchange the one time token with a z.auth cookie for the given user. The client will redirect to the Url.

Type:

first

Return:

ok | {error, term()}

#auth_client_logon_user{} properties:

  • user_id: m_rsc:resource_id()

  • url: union

Edit on GitHub