No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. QuaDgf
    Q
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 2
    • Groups 0

    QuaDgf

    @QuaDgf

    2
    Reputation
    274
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    QuaDgf Follow

    Best posts made by QuaDgf

    • RE: How to update auth token using app-extension-apollo each time a user log in?

      I was obsessed with apolloClientAfterCreate. It was more simple using apolloClientBeforeCreate.

      Following:
      https://github.com/quasarframework/app-extension-apollo/issues/37#issuecomment-619650193
      https://github.com/quasarframework/app-extension-apollo/issues/67

      I configure a function getToken() on apolloClientBeforeCreate.

      Thank you

      posted in Help
      Q
      QuaDgf
    • RE: [Solved] Datatable a small problem with field and a nested field (v0.17.16)

      So simple and I didn’t understand it 😕

      thank you 😊

      posted in Framework
      Q
      QuaDgf

    Latest posts made by QuaDgf

    • RE: How to update auth token using app-extension-apollo each time a user log in?

      I was obsessed with apolloClientAfterCreate. It was more simple using apolloClientBeforeCreate.

      Following:
      https://github.com/quasarframework/app-extension-apollo/issues/37#issuecomment-619650193
      https://github.com/quasarframework/app-extension-apollo/issues/67

      I configure a function getToken() on apolloClientBeforeCreate.

      Thank you

      posted in Help
      Q
      QuaDgf
    • How to update auth token using app-extension-apollo each time a user log in?

      Hello, I have a working demo using quasar, axios, and a rest api backend (jwt auth).

      Following @Hawkeye64 guidelines (https://forum.quasar-framework.org/topic/5100/how-can-i-pass-the-jwt-token-to-axios-get-request/7) it works well, axios instance are saved on vuex store, and when users log in an action calls a mutation. This mutation update axios instance header (token jwt). It checks when the token expires on router.beforeEach and axios request (401). When the token expires I redirect the user to the login screen (in the future I wish I could check the validation date of the token and renew the token before the expiration date).

      I have an api platform backend with graphQL and I would like to test it. I would like to update apolloClient object each time the user login similar as I am doing with the axios object:

        axiosInstance.defaults.headers.common.Authorization = 'Bearer <token>'
      

      But I don’t find how I could update the apolloClient object when users log in and update the token. Everybody creates a new apolloClient object:
      https://github.com/apollographql/apollo-client/issues/4990
      https://github.com/apollographql/apollo-client/issues/6212

      Maybe, I am missing an obvious method or simple change on apolloClient object for example on apolloClientAfterCreate function?

      Thank you very much

      posted in Help
      Q
      QuaDgf
    • RE: [Solved] Datatable a small problem with field and a nested field (v0.17.16)

      So simple and I didn’t understand it 😕

      thank you 😊

      posted in Framework
      Q
      QuaDgf
    • [Solved] Datatable a small problem with field and a nested field (v0.17.16)

      Hello, I would like to use a nested field in a column of a datatable

      I tried to define this way but it didn’t work.

      field: o => o.f

      I created a jsfiddle:

      https://jsfiddle.net/jauslms/kL71r68a/12/

      I have a workaround from here:
      https://github.com/quasarframework/quasar/issues/821

      slot=“body-cell-o”
      {{ props.value.f }}

      Anyone can help me?
      Thank you very much

      posted in Framework
      Q
      QuaDgf
    • Is it possible to have a q-input readonly?

      I check disable, but I don’t like gray text and the user can’t copy.
      If I do:
      <q-input v-model=“var” float-label=“Desc” readonly=“readonly”/>
      readonly goes to first div intead of input:
      0_1505426740076_upload-5890f42e-d852-4208-b7eb-92d62ce160f4

      Thank you

      posted in Help
      Q
      QuaDgf