Add table persistence, organize files

This commit is contained in:
Christoph Hagen
2021-12-01 22:47:19 +01:00
parent 7265fd0f0d
commit cde63c03d6
9 changed files with 410 additions and 214 deletions

View File

@@ -0,0 +1,14 @@
import Foundation
import Crypto
extension String {
/**
Create a new access token.
*/
static func newToken() -> String {
Crypto.SymmetricKey.init(size: .bits128).withUnsafeBytes {
$0.hexEncodedString()
}
}
}