You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ $api }=useNuxtApp();constrepository=authRepository($api);constonSubmit=form.handleSubmit(async(values)=>{constauthReq={username: values.username,password: values.password,};const{ data }=awaituseAsyncData(()=>repository.post(authReq));// how to get the accessToken and refreshToken directly from data ?});
I already tried to use data._value.accessToken but still not working, and also why it's not using my ApiResponse type ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have repository.ts
in my login component i call it with
I already tried to use data._value.accessToken but still not working, and also why it's not using my ApiResponse type ?
Thnx
Beta Was this translation helpful? Give feedback.
All reactions