Skip to content

Commit c34acf7

Browse files
committed
Revert the docs back to setUser until a new release
1 parent 417e879 commit c34acf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ While a user is logged in, you can tell Sentry to associate errors with user dat
5858

5959
.. code-block:: javascript
6060
61-
Raven.setUserContext({
61+
Raven.setUser({
6262
email: 'matt@example.com',
6363
id: '123'
6464
})
6565
66-
If at any point, the user becomes unauthenticated, you can call ``Raven.setUserContext()`` with no arguments to remove their data. *This would only really be useful in a large web app where the user logs in/out without a page reload.*
66+
If at any point, the user becomes unauthenticated, you can call ``Raven.setUser()`` with no arguments to remove their data. *This would only really be useful in a large web app where the user logs in/out without a page reload.*
6767

6868
Capturing a specific message
6969
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)