To get a firebase auth bearer token on iOS with Swift, you can use FirebaseAuth framework to sign in with user's credentials to get the token. Here is an example:
FirebaseAuth:main.swift20 chars2 lines
main.swift611 chars24 linesgetIDToken(completion:) function.Note: This token can be used to authenticate Firebase Services by providing it in the Authorization header of the request.
gistlibby LogSnag