Skip to content

Commit eb2f077

Browse files
committed
Use Firebase User getIdToken(), instead of deprecated getToken().
1 parent 7a0928f commit eb2f077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_firebase/templates/firebase_auth/widget_base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
signInOptions: [ {{ firebase_auth.provider_ids }} ],
2424
callbacks: {
2525
signInSuccess: function(user, credential, redirectUrl) {
26-
user.getToken().then(function(token) {
26+
user.getIdToken().then(function(token) {
2727
var xhr = new XMLHttpRequest();
2828
xhr.open("POST", "{{ firebase_auth.url_for('sign_in') }}", true);
2929
xhr.setRequestHeader("Content-Type", "application/jwt");

0 commit comments

Comments
 (0)