]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/OpenWebAuthToken.php
Replace addon "last" config entries with key-value entries
[friendica.git] / src / Model / OpenWebAuthToken.php
index b57356a9864b1a4e56e0b4fca18b6c101e47bd57..a91097599e3705ddfb4297aa384f1efa4c38d765 100644 (file)
@@ -39,13 +39,13 @@ class OpenWebAuthToken
         * @return boolean
         * @throws \Exception
         */
-       public static function create(string $type, uid $uid, string $token, string $meta)
+       public static function create(string $type, int $uid, string $token, string $meta)
        {
                $fields = [
-                       'type' => $type,
-                       'uid' => $uid,
-                       'token' => $token,
-                       'meta' => $meta,
+                       'type'    => $type,
+                       'uid'     => $uid,
+                       'token'   => $token,
+                       'meta'    => $meta,
                        'created' => DateTimeFormat::utcNow()
                ];
                return DBA::insert('openwebauth-token', $fields);