Skip to content

Instantly share code, notes, and snippets.

View robsontenorio's full-sized avatar
🎯
Focusing

Robson Tenório robsontenorio

🎯
Focusing
View GitHub Profile
@robsontenorio
robsontenorio / auth-refresh-token.js
Last active February 3, 2023 14:02
[OAUTH2][KEYCLOAK] Auto refresh token for @nuxtjs/auth module
const strategy = 'keycloak'
export default function ({ app }) {
const { $axios, $auth } = app
if (!$auth.loggedIn || !$auth.strategies[strategy])
return
const options = $auth.strategies.keycloak.options