How to get working with vue cli 3?
See original GitHub issueI’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:
- Created 5 years ago
- Comments:24 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Strangely, if I use
oidc-client
directly from thepublic
folder of a vuecli3 project, it works fine against this server 💭 so when bypassing vue’s lifecycle/pipeline this works fine?!?!? 😱OK, got it! I’ll try to take a look at the code sample within short!