jay_doubleu_tee 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 466bf244fedd2cc739d50c571486552fd5ba396b4dabef84f67cd048ae6b6907
4
- data.tar.gz: 9ff43ce6564a8aa048c30309b0a9c36bf1b41a9635046ae72a21ae668161fe47
3
+ metadata.gz: 3b97cdc198e67deb3e7bf32f6ea85eefb1b0a8a03f566c38205cd64ab017e412
4
+ data.tar.gz: 2d5177eec6bbd60fcdea34209c47a916efdf425668576436016f1754cc23ef22
5
5
  SHA512:
6
- metadata.gz: 58971ff4a53581205acdfcb211131e3ff2daf9a09ddb4fa5da1bcfe828eb3a34baffcc9fdeee23cffe403e8ec0b9de8db074b33f6999f1943531c39bef1b7ea1
7
- data.tar.gz: 3ca090115afdb48737b4e6352d377b6b268be6fa3b0f86f95a70540b046b3acedf83fc66417b8716b2808d3e24155a1c52b90150c94883ed12eb9b61e8f5dfc0
6
+ metadata.gz: 5fe6669fbe10bb8a0d8bf6ee8f398cb34eac32811b0e9111102687491bbd5d3252ffc8fbde1c6bc48a6217c769e1bfdb9bc092c360d8d3403e6b4d927ce50c20
7
+ data.tar.gz: ca25e6aa0658a1266a2c6ba1b50580e2fda619be0ae34750417fbb2f5ea2b214eb11a748a000965b97554fcd6a5d4365b03025aead23f7af7908f68ee794c73f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jay_doubleu_tee (0.2.0)
4
+ jay_doubleu_tee (0.2.1)
5
5
  dry-configurable
6
6
  dry-effects
7
7
  dry-monads
data/README.md CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
- `jay_double_uti` uses RS256 algorithm by default, so youl'll need a private/public key pair and the access token for testing it out.
27
+ `jay_doubleu_tee` uses RS256 algorithm by default, so youl'll need a private/public key pair and the access token for testing it out.
28
28
 
29
29
  In your console run
30
30
 
@@ -12,6 +12,7 @@ module JayDoubleuTee
12
12
  InvalidTokenError = Class.new(StandardError)
13
13
 
14
14
  def call(given)
15
+ return Failure(InvalidTokenError.new("Unauthorized. Token missing")) if given.nil? || given.empty?
15
16
  # Set password to nil and validation to false otherwise this won't work
16
17
  token = extract_token(given)
17
18
  res = JWT.decode token, signature, verify?, { algorithm: algorithm }
@@ -1,3 +1,3 @@
1
1
  module JayDoubleuTee
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jay_doubleu_tee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-12 00:00:00.000000000 Z
11
+ date: 2021-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt