title: how to login user after getting access token from api in vuejs?
body: <p>I've not got idea what to do after getting access token from vuejs and how can i login user through the token.</p>
  <p>After i build login frontend, I've now got  connected with django backend . I am using simplejwt.
  I got successfully got token but how can i login? It is not logging in when i check api backend, just i am getting only access tokens and refresh tokens.</p>
  <p>This is my snippet of store.js,</p>
  <pre><code>actions: {
  userLogin(context, { email, password }) {
      getAPI
        .post(&quot;/token/&quot;, {
          email: email,
          password: password
        })
        .then(response =&gt; {
          context.commit(&quot;updateStorage&quot;, {
            access: response.data.access,
            refresh: response.data.refresh
          });
        })
        .catch(err =&gt; {
          console.log(err);
        });
  }
  </code></pre>
  <p>getAPI i used from another which creates and connects to baseurl.</p>
  <p>Thank you for helping me.</p>