Skip to content

Commit

Permalink
Use Firebase User getIdToken(), instead of deprecated getToken().
Browse files Browse the repository at this point in the history
  • Loading branch information
keosak committed Sep 15, 2017
1 parent 7a0928f commit eb2f077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_firebase/templates/firebase_auth/widget_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
signInOptions: [ {{ firebase_auth.provider_ids }} ],
callbacks: {
signInSuccess: function(user, credential, redirectUrl) {
user.getToken().then(function(token) {
user.getIdToken().then(function(token) {
var xhr = new XMLHttpRequest();
xhr.open("POST", "{{ firebase_auth.url_for('sign_in') }}", true);
xhr.setRequestHeader("Content-Type", "application/jwt");
Expand Down

0 comments on commit eb2f077

Please sign in to comment.