How to obtain a WireGuard file via the Pritunl API?

Hi

I’m creating a project in React Electron that will use OpenVPN and WireGuard as features.

I would like to know how to connect using WireGuard user configuration file?

Pritunl has a custom authentication and connection management mechanism for WireGuard connections. The private key is generated for every connection and expires when the client hasn’t sent a recent ping to the server. This is done to prevent compromising the effectiveness of the multi-factor authentication features. Only the Pritunl Client will work for WireGuard connections.