This code:
import earthaccess as ea # version 0.15.1
auth = ea.login(strategy="netrc", persist=False)
creds = auth.get_s3_credentials(daac="ASF")
seems to generate credentials that produce 403 HTTP errors for the NISAR granules currently available. The credentials I manually get from https://nisar.asf.earthdatacloud.nasa.gov/s3credentials work.