generateSecret static method

String generateSecret()

Generates a secret suitable for handing to participants.

32 bytes of Random.secure as url-safe base64.

Implementation

static String generateSecret() => base64Url.encode(_randomBytes(32));