Comparing version 0.7.0-alpha-minor-1 to 0.7.0-alpha-minor-2
@@ -546,3 +546,3 @@ 'use strict'; | ||
return this.authenticate(token, callbackUrl); | ||
return (0, _didJwt.decodeJWT)(token).req ? this.authenticate(token, callbackUrl) : this.verifyProfile(token); | ||
} | ||
@@ -549,0 +549,0 @@ |
{ | ||
"name": "uport", | ||
"version": "0.7.0-alpha-minor-1", | ||
"version": "0.7.0-alpha-minor-2", | ||
"description": "Library for interacting with uport profiles and attestations", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
import { createJWT, verifyJWT, SimpleSigner } from 'did-jwt' | ||
import { createJWT, verifyJWT, SimpleSigner, decodeJWT } from 'did-jwt' | ||
import UportLite from 'uport-lite' | ||
@@ -335,3 +335,3 @@ const MNID = require('mnid') | ||
receive (token, callbackUrl = null) { | ||
return this.authenticate(token, callbackUrl) | ||
return decodeJWT(token).req ? this.authenticate(token, callbackUrl) : this.verifyProfile(token) | ||
} | ||
@@ -338,0 +338,0 @@ |
Sorry, the diff of this file is too big to display
932905