<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go/lib/paseto/payload_test.go, branch dev</title>
<subtitle>Collections of packages and tools for working with Go programming language.</subtitle>
<id>http://git.kilabit.info/pakakeh.go/atom?h=dev</id>
<link rel='self' href='http://git.kilabit.info/pakakeh.go/atom?h=dev'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/'/>
<updated>2026-03-30T14:07:31Z</updated>
<entry>
<title>lib/paseto: add unit tests for Payload and Message types</title>
<updated>2026-03-30T14:07:31Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-03-30T12:23:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=61a44bf239f5545080af83f890d488ceaf257a80'/>
<id>urn:sha1:61a44bf239f5545080af83f890d488ceaf257a80</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/paseto: store the time as Unix epoch inside Payload</title>
<updated>2026-03-29T23:35:53Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-03-29T20:49:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=e931ffed0aada7427d7016ce681b2d038b668ba3'/>
<id>urn:sha1:e931ffed0aada7427d7016ce681b2d038b668ba3</id>
<content type='text'>
Previously, we use time.Time to store the value for ExpiredAt, NotBefore,
and IssuedAt.
Even thought this is allowed (see RFC 7519 section 2, NumericDate) but
it is not a standard practices.

This changes them to store Unix epoch with int64.
</content>
</entry>
<entry>
<title>lib/paseto: move message, payload, footer, and key type from v2</title>
<updated>2026-03-29T15:17:14Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-03-29T14:05:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=5335f8d5e049866c904b506e28a7e48c8c787024'/>
<id>urn:sha1:5335f8d5e049866c904b506e28a7e48c8c787024</id>
<content type='text'>
The [v2/PublicToken] has been moved and renamed as [paseto.Message].
The Data field in the Message is removed since its duplicate with
[Payload.Data].

The [v2/JSONToken] has been moved and renamed as [paseto.Payload].
In the [Payload.Validate] method, we remove the validation for IssuedAt
field, since its usage is to store the time the token is created.
The Data field type in the Payload changes from string to any.

The [v2/JSONFooter] has been moved and renamed as [paseto.Footer].
The type of Data field in Footer changes from map[string]any to any.
The KID field in the Footer has been renamed to PeerID along with its
json identifer.

The [v2/Key] has been moved and renamed as [paseto.Peer].
</content>
</entry>
</feed>
