We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02262cd + 2250790 commit e8cc34dCopy full SHA for e8cc34d
examples/users/get-current-user.js
@@ -0,0 +1,16 @@
1
+/**
2
+ * Copyright (c) 2018-present, Renderforest, LLC.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory.
7
+ */
8
+
9
+const Renderforest = require('../../src/lib/renderforest')
10
11
+const options = { signKey: 'mock-signKey', clientId: -1 }
12
+const renderforest = new Renderforest(options)
13
14
+renderforest.getCurrentUser()
15
+ .then(console.log) // handle the success
16
+ .catch(console.error) // handle the error
0 commit comments