Skip to content

Instantly share code, notes, and snippets.

@u007 u007/somefunction.js
Created Jun 26, 2019

Embed
What would you like to do?
firebase function get current logged in user
const auth: any = context.auth || {}
if (!auth || !auth.uid) {
//not logged in
}
let authUser = await admin.auth().getUser(auth.uid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.