Login_required when running check_session seconds after Auth0js webAuth.redirect.signupAndLogin

I’m doing a custom signup using Auth0js on a Vue SPA. The user triggers a webAuth.redirect.signupAndLogin request, they are sent to my callback page where it will run a checkSession request and return the login_required error. I’m doing a checkSession after I hit an endpoint that checks if a user needs some additional attributes on the app_metadata. If so, it makes a request to update auth0 and then returns a boolean letting the client know to run checkSession to renew the token and get the userinfo. Here is the code:


Login.vue:
this.$auth.redirect.signupAndLogin(
{
email: this.email,
password: this.password,
connection: ‘Username-Password-Authentication’,
user_metadata: {
name: this.firstName + ’ ’ + this.lastName,
phoneNumber: this.phoneNumber
}
}


Python API:
// body = { app_metadata: newAppMetadataObject }
url = (“https://” + app.config.get(‘AUTH0_API’) + “/api/v2/users/” + auth0_id)
s = requests.Session()
req = requests.Request(method=‘PATCH’, url=url, headers=headers, data=json.dumps(body))
prep = req.prepare()
prep.url = url
updateUserResponse = s.send(prep)


Callback.vue component is used when signupAndLogin redirects to callback. It hits the /users endpoint to trigger the python logic to update the app_metadata
this.$auth.parseHash(
{ hash: window.location.hash },
function(err, authResult) {
if (err) {
let origin = window.location.origin
this.$store.commit(‘logoutUser’, { tokenTimeout: true, origin })
return
}

this.$axios
            .put('/account-service/practice/users', updateUserBody, {
              headers: {
                Authorization:
                  'Bearer ' + this.$store.state.user.accessToken
              }
            }).then(() => {
this.$auth.checkSession(
                {
                  audience: 'my-audience',
                  scope:
                    'openid profile email'
                },
                (err, authResult) => {
                  if (err) {
                    // THIS IS WHERE THE LOGIN_REQUIRED ERROR IS LOGGED
                    console.error('err', err)
                    this.$router.push({ name: 'Direct Mail' })
                    return
                  }

 }

})

Does anyone have any thoughts? I tried checking the logs for my rules but they don’t seem to be the issue. I have implemented custom domains. The hope is that for the instances where an update needs to happen to the user after signing up, that it will update the user and refresh the token without prompting the user to sign in again to get the updated information on app_metadata.