nabto_client_connection_set_server_connect_token()
DESCRIPTION
Set a SCT (Server Connect Token) token to use when connecting the the server.
If using a SCT, a server key is not required to allow remote connections.
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.
RETURNS
NABTO_CLIENT_EC_OK if the token is set.