helloasso.ts 468 B

12345678910111213141516171819
  1. import { defineStore } from 'pinia'
  2. import { ref } from 'vue'
  3. import type { Ref } from 'vue'
  4. export const useHelloAssoStore = defineStore('helloasso', () => {
  5. /**
  6. * Le code d'autorisation Helloasso obtenu via la mire d'autorisation
  7. */
  8. const authorizationCode: Ref<string | null> = ref(null)
  9. const setAuthorizationCode = (code: string | null) => {
  10. authorizationCode.value = code
  11. }
  12. return {
  13. authorizationCode,
  14. setAuthorizationCode,
  15. }
  16. })