-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parseUserData Support #44
Comments
Your organization has reached the subscribed usage limit. You can upgrade your account by purchasing a subscription at Stripe payment link Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect. Current plan usage: 100.39% Have feedback or need help? |
You have use const auth = createAuth({
rolesKey: "type",
notFoundRedirect: "/",
fetchData: {
enabled: true,
cache: true,
keyUser: "data"
},
refreshToken: {
enabled: false,
},
plugins: {
router,
},
drivers: {
http: {
request: app.config.globalProperties.$api,
},
auth: driverAuthBearer,
},
}) |
Thank you! I got it working as intended. When checking the docs, I was wondering what the After reading the source code and testing, I understood that the Also, I'm not sure if this still applies to this thread, but I have another instance where the user contains a boolean "is_admin" field instead of a |
try setting the return from your api to include |
Thank you for your time. I would like to keep the api unchanged, to ensure compatibility between clients (old and new). In Just to be sure, there is no way to change the user object right after the fetch, to append the |
Coming from
@websanova/vue-auth
, I was wondering if there is an equivalent configuration ofparseUserData
to allow me to extract/parse the user data from within my API response, for example when my response looks something like this:And the meaningful user data is only
I searched the docs and source code and couldn't find an alternative approach.
The text was updated successfully, but these errors were encountered: