For your backend (or anywhere without a UnetId instance): checks an access token the browser sent you
and returns who it belongs to. Never trust a client-sent sub alone.
Resolves null when the token is invalid/expired/revoked. Works in Node 18+ (global fetch).
For your backend (or anywhere without a
UnetIdinstance): checks an access token the browser sent you and returns who it belongs to. Never trust a client-sentsubalone. Resolvesnullwhen the token is invalid/expired/revoked. Works in Node 18+ (globalfetch).