简体   繁体   中英

Firebase authentication with backend in android

I plan to use Firebase for authentication and build chat for my Android app. But I have custom backend for rest of the APIs. Can we use both custom backend and firebase authentication at the same time?

Sure thing. You'll need to:

  1. Sign the user in with Firebase Authentication in your app .
  2. Pass the user's ID token from the app to your server over a secure connection.
  3. Decode and validate the ID token.
  4. Ensure the user is authorized for the action they're trying to take.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM