From 92afd296509de82e7550f67064b032db916b1f63 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Fri, 26 Aug 2016 19:12:19 +0200
Subject: The frontend will now be an OAuth app, auto-authorized. The frontend
 will use an access token for API requests Adding better errors for the API
 controllers, posting a simple status works from the frontend now

---
 app/assets/javascripts/components/actions/meta.jsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 app/assets/javascripts/components/actions/meta.jsx

(limited to 'app/assets/javascripts/components/actions/meta.jsx')

diff --git a/app/assets/javascripts/components/actions/meta.jsx b/app/assets/javascripts/components/actions/meta.jsx
new file mode 100644
index 000000000..1b64db1c2
--- /dev/null
+++ b/app/assets/javascripts/components/actions/meta.jsx
@@ -0,0 +1,8 @@
+export const SET_ACCESS_TOKEN = 'SET_ACCESS_TOKEN';
+
+export function setAccessToken(token) {
+  return {
+    type: SET_ACCESS_TOKEN,
+    token: token
+  };
+}
-- 
cgit 

