aboutsummaryrefslogtreecommitdiff
path: root/actions/security/refreshtoken.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/security/refreshtoken.php')
-rw-r--r--actions/security/refreshtoken.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/security/refreshtoken.php b/actions/security/refreshtoken.php
new file mode 100644
index 000000000..74a72c4af
--- /dev/null
+++ b/actions/security/refreshtoken.php
@@ -0,0 +1,5 @@
+<?php
+$ts = time();
+$token = generate_action_token($ts);
+
+echo json_encode(array('__elgg_ts' => $ts, '__elgg_token' => $token)); \ No newline at end of file