Use JWTSigner and JWTVerifier instead of Algorithm
masterThe Algorithm enum has been replaced by JWTSigner (for signing) and JWTVerifier (for verifying). This removes the need to manually specify the key type (e.g., .privateKey or .publicKey) as the specific signer/verifier methods now handle this context.
let privateKey = "<PrivateKey>".data(using: .utf8)!
let publicKey = "<PublicKey>".data(using: .utf8)!
// Swift-JWT 3.0+
let signer = JWTSigner.rs256(privateKey: privateKey)
let verifier = JWTVerifier.rs256(publicKey: publicKey)