fs
fs
Explore posts from servers
WWasp-lang
Created by fs on 9/23/2024 in #đŸ™‹questions
What's the best way to setup auth with third party that utilizes Google Auth?
Why not use only Wasp's Google Auth?
That would be ideal, but I need to generate a crypto wallet for the users, and Dyamic handles that for me
11 replies
WWasp-lang
Created by fs on 9/23/2024 in #đŸ™‹questions
What's the best way to setup auth with third party that utilizes Google Auth?
<DynamicContextProvider
settings={{
environmentId: "",
walletConnectors: [EthereumWalletConnectors],
events: {
onAuthSuccess: async ({ user, primaryWallet, isAuthenticated }) => {
const authToken = getAuthToken();
// how do we set the authToken to work with wasp's auth?
},
onAuthFailure: (data) => {
console.log("onAuthFailure", data);
},
},
}}
>
{children}
<CookieConsentBanner />
</DynamicContextProvider>
<DynamicContextProvider
settings={{
environmentId: "",
walletConnectors: [EthereumWalletConnectors],
events: {
onAuthSuccess: async ({ user, primaryWallet, isAuthenticated }) => {
const authToken = getAuthToken();
// how do we set the authToken to work with wasp's auth?
},
onAuthFailure: (data) => {
console.log("onAuthFailure", data);
},
},
}}
>
{children}
<CookieConsentBanner />
</DynamicContextProvider>
11 replies
WWasp-lang
Created by fs on 9/23/2024 in #đŸ™‹questions
What's the best way to setup auth with third party that utilizes Google Auth?
No description
11 replies