MCPcopy Create free account
hub / github.com/error311/FileRise / saveRememberTokenStore

Method saveRememberTokenStore

src/FileRise/Domain/AuthModel.php:800–808  ·  view source on GitHub ↗
(array $tokens)

Source from the content-addressed store, hash-verified

798 }
799
800 protected static function saveRememberTokenStore(array $tokens): void
801 {
802 $tokFile = USERS_DIR . 'persistent_tokens.json';
803 file_put_contents(
804 $tokFile,
805 encryptData(json_encode($tokens, JSON_PRETTY_PRINT), $GLOBALS['encryptionKey']),
806 LOCK_EX
807 );
808 }
809
810 /**
811 * Given OIDC claims, derive a FileRise username and optionally auto-create it.

Callers 5

validateRememberTokenMethod · 0.95
consumeRememberTokenMethod · 0.95
issueRememberTokenMethod · 0.95
revokeRememberTokenMethod · 0.95

Calls 1

encryptDataFunction · 0.85

Tested by

no test coverage detected