import { defineStore } from 'pinia';
import { ref, computed } from 'vue';



export const tokenInfo = defineStore('tokenInfo',()=>{
  const token = ref('')
  const getToken = computed(()=>token.value)
  const updateToken = (data:string)=>{
    token.value = data
  }
  return {
    token,
    getToken,
    updateToken
  }
},{
  persist:true,
})


export default tokenInfo;
