observe_auth_client_switch_user/2

Send a request to the client to switch users. The zotonic.auth.worker.js will

send a request to controller_authentication to perform the switch.

Type:

first

Return:

ok | {error, term()}

#auth_client_switch_user{} properties:

  • user_id: m_rsc:resource_id()

Edit on GitHub