Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
525f7b31
Commit
525f7b31
authored
Jul 25, 2023
by
iamhujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update utils_test.go
parent
a3abb3f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
utils_test.go
script/utils/utils_test.go
+5
-0
No files found.
script/utils/utils_test.go
View file @
525f7b31
...
@@ -13,3 +13,8 @@ func TestJwt(t *testing.T) {
...
@@ -13,3 +13,8 @@ func TestJwt(t *testing.T) {
token
,
_
:=
jwt
.
GenerateToken
(
4051
,
"96f6c25208a346b8871d5ef1a74a7fe3"
,
"hiloApi"
)
token
,
_
:=
jwt
.
GenerateToken
(
4051
,
"96f6c25208a346b8871d5ef1a74a7fe3"
,
"hiloApi"
)
t
.
Logf
(
token
)
t
.
Logf
(
token
)
}
}
func
TestJwtParse
(
t
*
testing
.
T
)
{
c
,
err
:=
jwt
.
ParseToken
(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjQyNDAyNjEsIkV4dGVybmFsSWQiOiI0MTIwOWU5NTE0ZDI0ODQwYTliNTMxMDgyMWViNjRkNiIsImV4cCI6MTY5MjI2MTIxNiwiaXNzIjoiaGlsb0FwaSJ9.2ru292Z1q8p87Chzp5DWrR1hMHO3sQcD1X3QNwOio2U"
)
println
(
c
,
err
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment