问题
I have a Cloud Function that uses the Firebase Auth Javascript SDK to call firebase.auth().checkActionCode(). I use the Javascript SDK, because I could not find a corresponding function in either the Admin SDK or via a REST API call. The REST API has a similar method to check a password reset code, but I don't see a method to check an email verification code (only to apply one): https://firebase.google.com/docs/reference/rest/auth#section-verify-password-reset-code
Is there a way to do the same thing as checkActionCode() using the REST API, that is, to check without applying, and for all kinds of codes?
The reason this question was pertinent is that Google discourages using the Javascript SDK on Node server.
来源:https://stackoverflow.com/questions/56728539/how-to-accomplish-firebase-auth-checkactioncode-using-firebase-auth-rest-sdk