Skip to content

Commit e087666

Browse files
committed
init
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 1c8e3b9 commit e087666

7 files changed

Lines changed: 848 additions & 10 deletions

File tree

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<p align="center">
2-
<img src="https://github.com/openpeeps/PKG/blob/main/.github/logo.png" width="90px"><br>
3-
OpenPeeps repository template for developing libraries,<br>projects and other cool things. 👑 Written in Nim language
2+
👑 Nim Bindings for LibJWT &mdash; JSON Web Token Library
43
</p>
54

65
<p align="center">
7-
<code>nimble install {PKG}</code>
6+
<code>nimble install webtokens</code>
87
</p>
98

109
<p align="center">
1110
<a href="https://github.com/">API reference</a><br>
12-
<img src="https://github.com/openpeeps/pistachio/workflows/test/badge.svg" alt="Github Actions"> <img src="https://github.com/openpeeps/pistachio/workflows/docs/badge.svg" alt="Github Actions">
11+
<img src="https://github.com/openpeeps/webtokens/workflows/test/badge.svg" alt="Github Actions"> <img src="https://github.com/openpeeps/webtokens/workflows/docs/badge.svg" alt="Github Actions">
1312
</p>
1413

15-
## 😍 Key Features
16-
- [x] Open Source | `MIT` License
17-
- [x] Written in Nim language
14+
## About
15+
This package provides Nim bindings for [LibJWT](https://github.com/benmcollins/libjwt), a C library that supports the following standards JWS, JWE, JWK, JWA and JWTs. It allows you to create, sign, verify, and decode JSON Web Tokens in your Nim applications.
16+
17+
### Prerequisites
18+
Check the official [LibJWT installation guide](https://github.com/benmcollins/libjwt?tab=readme-ov-file#construction-build-prerequisites)
19+
1820

1921
## Examples
2022
...
2123

2224
### ❤ Contributions & Support
23-
- 🐛 Found a bug? [Create a new Issue](/issues)
24-
- 👋 Wanna help? [Fork it!](/fork)
25+
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/webtokens/issues)
26+
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/webtokens/fork)
2527
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
2628

2729
### 🎩 License
28-
{PKG} | MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).<br>
30+
Made by Humans from OpenPeeps](https://github.com/openpeeps).<br>
2931
Copyright OpenPeeps & Contributors &mdash; All rights reserved.

src/webtokens.nim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# JSON WebToken - This package provides JWT creation
2+
# and verification functionality.
3+
#
4+
# (c) 2025 George Lemon | MIT License
5+
# Made by Humans from OpenPeeps
6+
# https://github.com/openpeeps/webtokens
7+
8+
import std/[times, strutils, base64, json]
9+
10+
import webtokens/[api, jws, jwk]
11+
export api, jws, jwk

0 commit comments

Comments
 (0)