aitomic.nomad_nmr.AuthToken¶
- class aitomic.nomad_nmr.AuthToken(expires_at, token)[source]¶
Authentication token for the NOMAD server.
A token must be used to authenticate requests to the NOMAD server. Generally the token is produced internally by the
Client
via theClient.login()
andClient.auth()
.Examples
Refreshing the token
if client.auth_token.expired(): client.auth()
- Parameters:
Attributes
The time at which the token expires.
The token value.
Methods
Check if the token is expired.