如果我擁有帶有某些聲明的自定義令牌,並且使用它登錄Firebase,是否有任何方式使用Web SDK從應用內部訪問這些聲明?從Web SDK訪問Firebase自定義令牌聲明
例如,如果我的自定義標記是這樣
{
:iss => $service_account_email,
:sub => $service_account_email,
:aud => "https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit",
:iat => now_seconds,
:exp => now_seconds+(60*60), # Maximum expiration time is one hour
:uid => uid,
:claims => {:premium_account => is_premium_account}
}
我想知道是否有類似的信息(來自內部應用程序):
firebase.auth.token.claims.premium_account
我沒有找到文檔中的任何此類內容。
http://stackoverflow.com/questions/39917020/where-to-find-auth-token-data-inside-firebase-objects – bojeil
謝謝@bojeil。所以它看起來不能從sdk訪問... – Bruno