nabto_client_connection_set_server_connect_token()

DESCRIPTION

Set a SCT (Server Connect Token) token to use when connecting the the server.

If the authentication method for the given server_key is set to SCT, the server requires a valid Server Connect Token before it allows the connect.

This authorization method is distinct from the JWT token concept.

This needs to be set before nabto_client_connect is called.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_set_server_connect_token(NabtoClientConnection* connection,
                                                 const char* sct)

PARAMETERS

connection:
[in] The connection.
sct:
[in] The Server Connect Token.

RETURN VALUES

NABTO_CLIENT_EC_OK if the token is set.

EXAMPLES

None.