active_token()#

function active_token()#

Get the token SciScript sends with requests, or None without a session.

SciScript’s missing-token warnings are ignored because a missing session is reported by the caller; an empty token counts as missing.

Returns:

The authentication token from Authentication.getToken, or None.

Return type:

str | None