mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Delete oauth codes after use
This commit is contained in:
parent
ec4e24d913
commit
c1c0f6d239
@ -441,6 +441,10 @@ func (d *Database) GetTokenByCode(code string) (string, error) {
|
|||||||
return "", errors.New("No such code")
|
return "", errors.New("No such code")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete(d.WaygatePendingTokens, code)
|
||||||
|
|
||||||
|
d.persist()
|
||||||
|
|
||||||
return token, nil
|
return token, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user