turbo-eth / template-web3-app

⚡️ Web3 App Template built using Next.js, RainbowKit, SIWE, Disco, and more!
https://www.turboeth.xyz
MIT License
342 stars 90 forks source link

Refactor: Separate SIWE message functionality from siweLogin function #36

Closed marthendalnunes closed 1 year ago

marthendalnunes commented 1 year ago

Description:

In this Pull Request, the SIWE message formatting and signing have been separated from the siweLogin function and moved to a new siweMessage function. The siweLogin function now imports and runs the siweMessage function, retaining its original functionality.

This modularization of the siweMessage function allows other integrations to use SIWE authentication without requiring the login and logout functions. For example, the upcoming Lit Protocol integration can make use of this functionality.

Changes:

vercel[bot] commented 1 year ago

@marthendalnunes is attempting to deploy a commit to the District Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
turbo-eth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2023 10:31am