Function: nflHeadersGen()
nflHeadersGen(
token?):Promise<Record<string,string>>
Defined in: core/nfl_auth.ts:176
Build the request-header dict expected by api.nfl.com.
Obtains a bearer token via nflTokenGen (which caches + auto-renews, or
honors NFL_ACCESS_TOKEN) unless token is supplied, and combines it with the
browser-style headers the NFL.com web app sends.
Parameters
token?
string
An existing access token to reuse; mints/caches one when omitted.
Returns
Promise<Record<string, string>>