Skip to content
Snippets Groups Projects
Verified Commit 39e21ff7 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Uprava pro akitualni verzi Mojo::JWT

parent 48418d8e
No related branches found
No related tags found
No related merge requests found
Pipeline #20316 passed
......@@ -25,7 +25,7 @@ RUN cpanm \
Mojolicious \
Mojo::Pg \
Mojo::Redis \
Mojo::JWT@0.09 \
Mojo::JWT \
GraphQL::Client \
Mojolicious::Plugin::Authentication \
Mojolicious::Plugin::I18N \
......
0.17.1
0.17.2
......@@ -23,8 +23,10 @@ sub register {
my $res = $tx->result;
if ($res->is_success) {
my $key = join "\n", unpack("(A64)*", $res->json->{public_key});
$jwt = Mojo::JWT->new(
public => sprintf( KEY_FORMAT, $res->json->{public_key} )
public => sprintf( KEY_FORMAT, $key )
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment