Differences From Artifact [78b2aad470]:
- File session.t — part of check-in [d4ecea913f] at 2020-12-31 00:15:53 on branch trunk — add lots more shit (user: lexi, size: 2205) [annotate] [blame] [check-ins using]
To Artifact [c79e9ffb10]:
- File session.t — part of check-in [78b0198f09] at 2021-01-04 06:44:13 on branch trunk — add likes, retweets, and iterate on a whole bunch of other shit (user: lexi, size: 2207) [annotate] [blame] [check-ins using]
4 4 -- a login epoch time, and a truncated hmac code authenticating both, all 5 5 -- encoded using Shorthand. we need functions to generate and parse these 6 6 7 7 local m = { 8 8 maxlen = lib.math.shorthand.maxlen*3 + 2; 9 - maxage = 2 * 60 * 60; -- 2 hours 9 + maxage = 16 * 60 * 60; -- 16 hours 10 10 cookiename = 'auth'; 11 11 } 12 12 13 13 terra m.cookie_gen(secret: lib.mem.ptr(int8), authid: uint64, time: uint64, out: &int8): intptr 14 14 var ptr = out