Strip whitespaces from tokens (#558)

This commit is contained in:
Ollie H 2023-05-01 21:29:13 -07:00 committed by GitHub
parent 83959c595d
commit 74fbb47979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -704,8 +704,9 @@ const SetNewPasswordForm = ({
try {
const agent = new BskyAgent({service: serviceUrl})
const token = resetCode.replace(/\s/g, '')
await agent.com.atproto.server.resetPassword({
token: resetCode,
token,
password,
})
onPasswordSet()