Firebase 'createCustomToken' not recognized in Android

后端 未结 1 515
孤城傲影
孤城傲影 2021-01-20 02:02

I\'m implementing "login with custom token". I found this snippet of code in the Firebase documentation.

firebaseAuth.createCustomToken(uid)
                


        
相关标签:
1条回答
  • 2021-01-20 03:02

    you try to mix up the Firebase Admin SDK with the Android SDK. The method createCustomToken is only available at the Admin SDK and not for the Android SDK. The docs for Android can be found here

    https://firebase.google.com/docs/auth/android/start/

    The Admin SDK can only be used at server side

    0 讨论(0)
提交回复
热议问题