The flow
Starts it 9Logic 10Service 11
The steps in the order they run, from what starts it.
- 1On form registerForm triggerStarts it
- 2On form loginForm triggerStarts it
- 3AuthWebhookStarts it
- 4ProfileWebhookStarts it
- 5Create password and tokenCodeLogic
- 6Check username/passwordGoogle SheetsService
- 7If has tokenIfLogic
- 8Check sid cookies headerCodeLogic
- 9Append or update row in sheetGoogle SheetsService
- 10If login successIfLogic
- 11Search by tokenGoogle SheetsService
- 12Invalid tokenRespond To WebhookStarts it
- 13Search sidGoogle SheetsService
- 14Send username/passwordGmailService
- 15If has token in DBIfLogic
- 16Redirect to login formFormService
- 17If token validIfLogic
- 18If has data with sidIfLogic
- 19Notice register successFormService
- 20Redirect to auth urlFormService
- 21Generate tokenCodeLogic
- 22Prepare sidCodeLogic
- 23Redirect to login form1Respond To WebhookStarts it
- 24Prepare htmlCodeLogic
- 25Redirect to loginRespond To WebhookStarts it
- 26Add token to DBGoogle SheetsService
- 27Redirect to profile and set cookiesRespond To WebhookStarts it
- 28Update sidGoogle SheetsService
- 29Show profile pageRespond To WebhookStarts it
- 30Redirect to auth with new tokenFormService