when running on node 26 globalThis has a stub for localStorage, but accessing it does actually produce an error when started with default parameters:
❯ node
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 'localStorage' in globalThis
true
> globalThis.localStorage
undefined
> (node:1113098) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided.
(Use `node --trace-warnings ...` to show where the warning was created)
This results in the check in https://github.com/osmlab/osm-auth/blob/v3.2.0/src/osm-auth.mjs#L30 to be skipped, and later on causing crashes because _store is actually undefined.
when running on node 26
globalThishas a stub forlocalStorage, but accessing it does actually produce an error when started with default parameters:This results in the check in https://github.com/osmlab/osm-auth/blob/v3.2.0/src/osm-auth.mjs#L30 to be skipped, and later on causing crashes because
_storeis actuallyundefined.