jahidanowar / shrty

A Nuxt3, Supabase URL Shortener designed with TailwindCSS
https://shrty.vercel.app/
24 stars 6 forks source link

I don't have copying working. #2

Open thefubon opened 1 year ago

thefubon commented 1 year ago

Can you please tell me what could be causing this error? https://github.com/thefubon/nuxt3-starter/blob/master/components/app/LinkItem.vue

In Console

{                                                                                                             
  data: RefImpl {
    __v_isShallow: false,
    dep: undefined,
    __v_isRef: true,
    _rawValue: null,
    _value: null
  }
}

I don't have copying working.

const handleCopy = () => {
  navigator.clipboard.writeText(`https://domain.com/${props.link.shortKey}`);

  alert("Copied to Clipboard");
};

UPDATE: It worked after resetting the cache in the browser

thefubon commented 1 year ago

After authorization I still have access to https://name.com/auth

thefubon commented 1 year ago

Another problem is that when I authorize in production through GitHub, I get a redirect to http://localhost:3000 instead of the domain

lakshaybhushan commented 1 year ago

@thefubon change your redirect url in supabase settings