From 9bcc31925484d3ae15b698d189946b4d7b0ccc14 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Wed, 23 Dec 2015 23:53:18 +0100 Subject: [PATCH] =?UTF-8?q?WIP=20=E2=80=93=20connect=20on=20signin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * * * This commit was sponsored by &yet. Our friends at &yet have been supporters of Hoodie since its earliest days. <3 And they have availability for new projects! We think they’re some of the best people you can hire anywhere, but you can read what other people have to say about them and their work here: https://andyet.com/case-studies/ --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index deafea5..74a1b64 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,7 @@ function Hoodie (options) { api.account.on('signin', function (account) { api.store.db.__opts.ajax.headers.authorization = 'Bearer ' + account.session.id + api.store.connect() }) api.account.on('signout', function () { delete api.store.db.__opts.ajax.headers.authorization