# observe\_auth\_client\_logon\_user/2

Source: https://zotonic.com/docs/2283/observe_auth_client_logon_user-2

URI: https://zotonic.com/id/2283

Language: en



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](/id/doc_developerguide_notifications#notification-first)

Return:

`ok | {error, term()}`

`#auth_client_logon_user{}` properties:

- user\_id: `m_rsc:resource_id()`
- auth\_options: `map`
- url: `binary | undefined`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2283?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2283?language=en>)
