Optionalstate?: string | (() => string | Promise<string>)An opaque value used by the client to maintain state between the request and callback.
It's also recommended to prevent CSRF https://tools.ietf.org/html/rfc6749#section-10.12
Defaults to the value returned by the configured generateState function.
Identical to LoginOptions except that
statemay also be a (possibly async) function; all other fields reuse theLoginOptionsdocumentation.