Skip to content

fix Credential.getAccessToken (returns a promise)#63

Open
alextekartik wants to merge 34 commits into
pulyaevskiy:masterfrom
tekartikdev:master
Open

fix Credential.getAccessToken (returns a promise)#63
alextekartik wants to merge 34 commits into
pulyaevskiy:masterfrom
tekartikdev:master

Conversation

@alextekartik

Copy link
Copy Markdown
Contributor

As stated here:

https://firebase.google.com/docs/reference/admin/node/admin.credential.Credential-1#getaccesstoken

# getAccessToken

Returns a Google OAuth2 access token object used to authenticate with Firebase services.

Returns Promise<GoogleOAuthAccessToken>

getAccessToken returns a Promise. I changed the implementation and added a simple unit test (the change in firestore_test.dart is just a formatting change that was done automatically).

I have not setup any dart high level wrapper on Credential as I'm not sure how you would prefer it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant