mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-13 23:20:05 +00:00
chore(*): refactor, move all auth-related code to auth folder
This commit is contained in:
3
src/auth/isAuthorizeFormRequired.ts
Normal file
3
src/auth/isAuthorizeFormRequired.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const isAuthorizeFormRequired = (response: string): boolean => {
|
||||
return /<form.+action="(.*Logon\/oauth\/authorize[^"]*).*>/gm.test(response)
|
||||
}
|
||||
Reference in New Issue
Block a user