mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 12:54:31 +02:00
Remove return_tokens query param for login
This commit is contained in:
parent
7d6d3e6687
commit
806c0a2991
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ class Auth {
|
|||
// Local strategy login route (takes username and password)
|
||||
router.post('/login', this.authRateLimiter, passport.authenticate('local'), async (req, res) => {
|
||||
// Check if mobile app wants refresh token in response
|
||||
const returnTokens = req.query.return_tokens === 'true' || req.headers['x-return-tokens'] === 'true'
|
||||
const returnTokens = req.headers['x-return-tokens'] === 'true'
|
||||
|
||||
const userResponse = await this.handleLoginSuccess(req, res, returnTokens)
|
||||
res.json(userResponse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue