mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Linting fixes
This commit is contained in:
parent
769c9b23b0
commit
6cad41ec1e
1 changed files with 5 additions and 3 deletions
|
|
@ -329,7 +329,10 @@ export function authRouter() {
|
|||
|
||||
if (newUser) {
|
||||
if (redirectUri && redirectUri !== '/') {
|
||||
redirectUri = url.resolve(env.client.url, decodeURIComponent(redirectUri))
|
||||
redirectUri = url.resolve(
|
||||
env.client.url,
|
||||
decodeURIComponent(redirectUri)
|
||||
)
|
||||
} else {
|
||||
redirectUri = `${env.client.url}/home`
|
||||
}
|
||||
|
|
@ -340,7 +343,7 @@ export function authRouter() {
|
|||
const message = res.get('Message')
|
||||
if (message) {
|
||||
const u = new URL(redirectUri)
|
||||
u.searchParams.append('message', message);
|
||||
u.searchParams.append('message', message)
|
||||
redirectUri = u.toString()
|
||||
}
|
||||
|
||||
|
|
@ -351,7 +354,6 @@ export function authRouter() {
|
|||
if (authToken) {
|
||||
const ssoToken = createSsoToken(authToken, redirectUri)
|
||||
redirectUri = ssoRedirectURL(ssoToken)
|
||||
|
||||
}
|
||||
|
||||
return res.redirect(redirectUri)
|
||||
|
|
|
|||
Loading…
Reference in a new issue