-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 4324: Integration of the Aleo wallet in Boloney!
- Removed old authentication flow - Authenticating with Aleo wallet - Creating Nakama session with Aleo wallet - Refreshing connection to Aleo wallet and Nakama session Figma designs (don't mind the italic font): https://www.figma.com/file/UB1htt9Flaql9UyxjsXnvb/Boloney!?type=design&node-id=7420-110178 QA: First things first, pull `verify-account` branch of the toolkit and run it locally with `yarn start` 0. Make sure to install and login with Aleo wallet browser extension 1. Run `skaffold delete` to remove the old db 2. Wait a few seconds 3. Run `skaffold run` 4. Go to the auth page and try to create an account 5. After you are logged in try refreshing the page to make sure the session is preserved 6. Log out 7. Go to the auth page and try to authenticate. This time you should not be asked for a username Related work items: #19486, #19487, #19500
- Loading branch information
1 parent
1fb5d95
commit 4f92290
Showing
56 changed files
with
636 additions
and
362 deletions.
There are no files selected for viewing
Binary file added
BIN
+60.1 KB
.yarn/cache/@demox-labs-aleo-wallet-adapter-base-npm-0.0.13-0960b392a1-adb3f39bd5.zip
Binary file not shown.
Binary file added
BIN
+32.4 KB
.yarn/cache/@demox-labs-aleo-wallet-adapter-leo-npm-0.0.12-c642db4d2e-9ef9975b1e.zip
Binary file not shown.
Binary file added
BIN
+23.2 KB
.yarn/cache/@demox-labs-aleo-wallet-adapter-react-npm-0.0.13-2150195f56-15310331ea.zip
Binary file not shown.
Binary file added
BIN
+148 KB
.yarn/cache/@demox-labs-aleo-wallet-adapter-reactui-npm-0.0.25-b525916ca5-960a0a8b7d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+100 KB
...stand-npm-4.3.6-c02ac9b7e3-4d3cec0352.zip → ...stand-npm-4.3.8-31b8907f5b-24db6bf063.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from "./dice"; | ||
export * from "./create-match"; | ||
export * from "./find-match"; | ||
export * from "./chat"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
import { MINIMUM_PASSWORD_LENGTH, MINIMUM_USERNAME_LENGTH } from "../../constants"; | ||
import { MINIMUM_USERNAME_LENGTH } from "../../constants"; | ||
|
||
export const authForm = { | ||
somethingWentWrong: "something went wrong.", | ||
createAccount: "create account", | ||
welcomeBack: "hello again", | ||
login: "login", | ||
readyToBluff: "ready to Bluff", | ||
whoAreYou: "who goes there? Looks like you don’t have an account yet, so create one to play.", | ||
goodSeeingYouAgain: "good to see you’re fulla Boloney! Sign back in to play.", | ||
iAlreadyHaveAnAccount: "do you have an account? Sign in", | ||
iDontHaveAnAccountYet: "don’t have an account yet? Create one", | ||
register: "register", | ||
signIn: "sign in", | ||
here: "here", | ||
followWalletSteps: "follow the steps on the Aleo Popup to connect your wallet...", | ||
completeWalletSignature: "complete the wallet signature to continue.", | ||
walletCorrectlyConnected: "your Aleo Wallet is correctly connected.", | ||
connectWithWallet: "connect with wallet", | ||
connecting: "connecting", | ||
connected: "connected", | ||
validatingSignature: "validating signature", | ||
signatureValidated: "signature validated", | ||
join: "join", | ||
username: "username", | ||
password: "password", | ||
confirmUsername: "confirm username", | ||
letsRoll: "let's roll!", | ||
errorMessages: { | ||
usernameRequired: "username is required.", | ||
passwordRequired: "password is required.", | ||
usernameMinimum: `username must have at least ${MINIMUM_USERNAME_LENGTH} characters.`, | ||
passwordMinimum: `password must have at least ${MINIMUM_PASSWORD_LENGTH} characters.`, | ||
usernameAlreadyTaken: "username is already taken.", | ||
usernameProfanity: "username contains profanity.", | ||
usernameCharacters: "username contains invalid characters.", | ||
usernamesDoNotMatch: "usernames do not match.", | ||
invalidCredentials: "invalid credentials.", | ||
internal: "internal error. Please try again later.", | ||
}, | ||
|
||
welcomeBack: (username: string) => `Welcome Back ${username}, seems you're ready to go! `, | ||
welcome: (username: string) => `Welcome ${username}, seems you're ready to go! `, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useMemo } from "react"; | ||
import { useLocation } from "react-router-dom"; | ||
|
||
/** | ||
* A custom hook that builds on useLocation to parse the query string for you. | ||
*/ | ||
export const useQueryParams = () => { | ||
const { search } = useLocation(); | ||
|
||
return useMemo(() => new URLSearchParams(search), [search]); | ||
}; |
Oops, something went wrong.