Andela Notifications Updated

This commit is contained in:
2026-07-07 19:39:32 +00:00
parent eb0bda57a7
commit dcd00af6bb
16 changed files with 1277 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Andela Apps Script (Gmail magic-link fetcher)
Deploy this as a Google Apps Script Web App under the Google account whose
Gmail receives the forwarded Andela login emails.
## Setup
1. https://script.google.com → New project → paste `Code.gs` in as `Code.gs`.
2. Edit `SECRET_KEY` (generate with `openssl rand -hex 16`) and `ALLOWED_EMAIL`
(the email typed into the Andela login form — your Outlook address, not Gmail).
3. Deploy → New deployment → Web app → Execute as **Me** → Who has access **Anyone**.
4. Authorize Gmail access when prompted, then copy the `/exec` URL.
5. Put that URL + the same SECRET_KEY + the same email into the Chrome
extension's Settings page.
6. Whenever you edit this file: Deploy → Manage deployments → Edit →
Version: New version → Deploy (saving alone does not update the live web app).
## Debugging
Run `debugLoginEmails` from the function dropdown in the editor, then check
Executions in the left sidebar for the Logger output.