<?php

namespace App\Libraries;

class StaffTimeOffLinkService
{
    public function createToken(array $payload): string
    {
        $json = json_encode($payload);
        if ($json === false) {
            return '';
        }

        return rtrim(strtr(base64_encode($json), '+/', '-_'), '=');
    }
}
