question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get working with vue cli 3?

See original GitHub issue

I’ve noticed the example uses webpack and separates the silent renewal from the main SPA.

Is there anyway to get silent renew working inside the one SPA? I’ve tried with the routing flags:

router.js

//...
{
      path: '/silent-refresh-oidc',
      name: 'silent-refresh-oidc',
      component: OidcSilentRefresh,
      meta: {
        isOidcCallback: true,
        isPublic: true,
      },
    },
//...

OidcSilentRefresh.vue

<template>
  <div></div>
</template>

<script>
import { vuexOidcProcessSilentSignInCallback } from 'vuex-oidc';
import OidcSettings from '../oidc-config';

export default {
  mounted() {
    vuexOidcProcessSilentSignInCallback(OidcSettings);
  },
};
</script>

But the access token never seems to get updated. I will produce a simple reproducable example repo and post a link to it in this ticket to show the silent renewal working, but failing to update the ticket, which causes a high number of requests to the auth server, but then the user loosing their access token.

No errors on console that I can see.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
tommedcommented, Nov 2, 2018

Strangely, if I use oidc-client directly from the public folder of a vuecli3 project, it works fine against this server 💭 so when bypassing vue’s lifecycle/pipeline this works fine?!?!? 😱

1reaction
perarnborgcommented, Oct 29, 2018

OK, got it! I’ll try to take a look at the code sample within short!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started With Vue CLI 3 - Medium
With the new Vue CLI 3 there are two ways we can create new Vue projects from scratch: ... First, let's take a...
Read more >
Vue CLI: Home
For new projects, please use create-vue to scaffold Vite-based projects. Also refer to the Vue 3 Tooling Guide for the latest recommendations. Getting...
Read more >
Vue CLI 3 - Creating our Project - Real World Vue 2
Learn how to create a project with Vue CLI 3 from the command line and with the Vue UI. Then learn how the...
Read more >
How To Generate a Vue.js Single Page App With the Vue CLI
By the end of this tutorial, you will have a working Vue.js application running on a local Node server. This local server uses...
Read more >
Getting Started with Vue CLI 3.x - Stack Abuse
For the Vue CLI to work you would need to install Node.js (version 8.9+) on your computer, to make sure you are able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found