* Determines if fallback to root discovery should be attempted
(response: Response | undefined, pathname: string)
| 819 | * Determines if fallback to root discovery should be attempted |
| 820 | */ |
| 821 | function shouldAttemptFallback(response: Response | undefined, pathname: string): boolean { |
| 822 | return !response || (response.status >= 400 && response.status < 500 && pathname !== '/'); |
| 823 | } |
| 824 | |
| 825 | /** |
| 826 | * Generic function for discovering OAuth metadata with fallback support |
no outgoing calls
no test coverage detected
searching dependent graphs…