rpcme / Mojo-JWT-Google

Easily create a JWT for Google authorization.
0 stars 1 forks source link

strange exit #1

Open alexdruk opened 7 years ago

alexdruk commented 7 years ago

Program fails with this message: "Can't call method "join" on unblessed reference at /Library/Perl/5.18/Mojo/JWT/Google.pm line 51." My code: my $gjwt = Mojo::JWT::Google->new( from_json => $googleCredentials, scopes => [ '/auth/prediction' ])->encode;

rpcme commented 7 years ago

from the code it's just joining a Mojo::Collection, which is just your scopes that you're initializing in the new() call. Somehow the collection got clobbered. Could you let me know the version of Mojolicious you have installed?

alexdruk commented 7 years ago

No problem: Mojolicious-7.28

pscott-au commented 5 years ago

I was also seeing this error . there looks to be some3thing wrong with your scopes attribute. you look to be trying to default it to being a Mojo Collection but allow it to be overwritten directly. Mojolicious-8.06

I also had to set the issue_at to time() because it looks to default to 1.