Skip to content

Commit 16b9e20

Browse files
committed
fix(handle-callback): on token update, merge firestore doc with store and authentication ids
1 parent 4b37738 commit 16b9e20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/methods/handle-callback.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ const handleCallback = client => {
6868
firestoreDoc = {
6969
access_token: reqBody.access_token,
7070
expires: reqBody.expires,
71-
updated_at: require('firebase-admin').firestore.Timestamp.now()
71+
updated_at: require('firebase-admin').firestore.Timestamp.now(),
72+
authentication_id: authenticationId,
73+
store_id: storeId
7274
}
7375
} else {
7476
values = [

0 commit comments

Comments
 (0)