Strip whitespaces from tokens (#558)
This commit is contained in:
parent
83959c595d
commit
74fbb47979
2 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue