Skip to content

Commit

Permalink
docs[okta-vue]: Updates README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nountie committed Feb 8, 2024
1 parent 382547e commit 8e56780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ If you are using Composition API, you can access the OktaAuth instance with `use

<template>
<div id="app">
<router-link to="/" tag="button" id='home-button'> Home </router-link>
<router-link to="/" custom v-slot="{ navigate, isActive, isExactActive }" id="home-button">
<button :class="{ 'router-link-active': isActive, 'router-link-exact-active': isExactActive }" @click="navigate">
Home
</button>
</router-link>
<button v-if='authState && authState.isAuthenticated' v-on:click='logout' id='logout-button'> Logout </button>
<button v-else v-on:click='login' id='login-button'> Login </button>
<router-view/>
Expand Down

0 comments on commit 8e56780

Please sign in to comment.