> For the complete documentation index, see [llms.txt](https://docs.tasksource.io/api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tasksource.io/api-documentation/user/new-authentication-trigger.md).

# NEW Authentication Trigger

### Input parameters

* Only whne user is new!!!!

### How to call from app

```
automatically
```

### Logic (Assign tasks that belong to his email adress)

1. SEND first EMAIL:&#x20;
   1. to\_email\_adress = auth.user.email
   2. template\_name = "welcome-new-user->user"
   3. data = none
2. SEND first EMAIL:&#x20;
   1. to\_email\_adress = "<info@tasksource.io>
   2. template\_name = "welcome-new-user->us"
   3. data = none
3. query assigned where assignToEmail == auth.user.email
4. If one found call Assign task function with parameters:
   1. Email-Adress of Assigned member
   2. TaskID
