@hrithwik
Software Engineer ,Tech Enthusiast, Violinist
I am a full stack developer from Mysore India. I am here to share as much information I know with the world in the most articulate way.
Freelance Software projects from Progressive web applications to applications
I am super new to next-auth and trying it for my new side project . I have few questions How can I get custom data which is stored in the DB for the user like userId. (Should I use the session hook and whenever the use session is called , it makes a DB call) How can I stop making a session API call everytime the tab is switched ?
Even I use Clipboard API but with the support for fallback like below, (FB/Instagram browser doesn't support just clipboard API) async function copyLink ( ) { try { await navigator.clipboard.writeText(link); console.log( "Link Copied" ); } catch (e){ copyToClipbordFallback(link); console.log( "Link Copied" ); } } function copyToClipbordFallback ( text ) { const textArea = document.createElement( "textarea" ); textArea. value = text; document.body.appendChild(textArea); textArea.select(); document.execCommand( "copy" ); textArea.remove(); } so this fallback is mainly for FB/IG Browsers and other old browsers