Returns the user id behind the ?token= of a file, thumbnail or playlist
cover URL, or null when it isn't valid. A session token is accepted too, for
clients from before media tokens.
Parameters
token: string
Return Type
Promise<string | null>
Usage
import { authenticateMedia } from "api/lib/auth.ts";