Skip to content

Commit c332cc7

Browse files
authored
fix lint error for serverless auth routes (#57)
In serverless auth uses /login to redirect but in EKS auth frontend load the forms from Kratos with CSRF in React
1 parent aa257b1 commit c332cc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/src/routes/Auth.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from 'react'
22
import { BrowserRouter as Switch, Route, Link } from 'react-router-dom'
33
import Logout from '../pages/Auth/Logout'
4-
<%- if ne (index .Params `backendApplicationHosting`) "serverless" %>
4+
<%- if eq (index .Params `backendApplicationHosting`) "serverless" %>
55
import Login from '../pages/Auth/Login'
6+
<% end %>
7+
<%- if ne (index .Params `backendApplicationHosting`) "serverless" %>
68
import Auth from '../pages/Auth/Form'
79
<% end %>
810

0 commit comments

Comments
 (0)