【发布时间】:2016-06-06 04:16:31
【问题描述】:
如何创建包含显示名称、用户名和个人资料图片信息的用户?
我可以使用此代码吗?
if let user = FIRAuth.auth()?.currentUser
let name = user.displayName
let email = user.email
let photoUrl = user.photoURL
let uid = user.uid; // The user's ID, unique to the Firebase project.
// Do NOT use this value to authenticate with
// your backend server, if you have one. Use
// getTokenWithCompletion:completion: instead.
} else {
// No user is signed in.
}
如果不是,此代码用于什么目的? 哪些代码可用于确定用户名、个人资料图片等?
我是 Firebase 的新手。
【问题讨论】:
标签: ios firebase swift2 firebase-authentication