-
-
Notifications
You must be signed in to change notification settings - Fork 134
feat: admin notifications for org sign up #1768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: admin notifications for org sign up #1768
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Mephistic Realizing there might be the new In the readme under |
In this PR, it looks like a second firebase function is still being defined in
See
We talked about extracting out the common admin sending so there's some shared function:
that is used by a firestore trigger function (like above) and an https function (like):
The HTTPS function may be unnecessary - you can test firebase function directly from an emulator with |
Yeah, agreed that doesn't sound like an issue defining the function - just an auth issue. I confirmed that you have access to the dev project. When you open a new shell tab/window, can you confirm:
If the above look as we'd expect, one thing that works sometimes is forcing a firebase auth refresh with |
Yeah, the firebase login --reauth did indeed log me in, thanks for the pointer. I do have the application_default_credentials.json file with account, client_d, client_secret, quota_prooject_id, refresh_token, type, and universe_domain. The GOOGLE_APPLICATION_CREDENTIALS variable has been confirmed as having the path for that json file as its value. |
I'm getting when I run |
Based on that error, it sounds like you should just need to install Java and make sure it's in your $PATH to make things work. |
Summary
Adding functions for notifications emails to users and admins. This draft in particular is just testing if organization sign up emails are added to the emails collection. See adminNotification function and its call in the onRequest.
Checklist
Screenshots
Known issues
Steps to test/reproduce