Closed aphillipo closed 2 years ago
@config[:api_secret] was empty under some weird conditions... probably should be a better/correct error for nil/empty secrets.
Sorry for the long delay... I was on vacations :)
Glad it turned out fine. Will look into it in more detail this week
No worries at all Victor! Joken is so good and simple, thanks for all your work on it!
Hey I'm doing the following,
signer = Joken.Signer.create("HS256", @config[:api_secret])
But from time to time I get:
I literally just added some IO.inspect calls to print off the value of @config[:api_secret] and now it magically works again even after removing the inspect calls, not that it should have mattered.
I have come to the conclusion that is must be a config thing with my Mac or something but I just cannot for the life of me figure it out. Sometimes deleting _build helps other times not. Maybe there is some time/clock thing involved but everything seems okay and it doesn't look like time is exp etc. is part of this signer creation process.
Any ideas welcome but it's extremely confusing. I'm on an M1 Max if that makes any difference.