BlueBubblesApp / bluebubbles-server

Server for forwarding iMessages to clients within the BlueBubbles App ecosystem
https://bluebubbles.app
Apache License 2.0
540 stars 47 forks source link

V2 API with Tokens! #592

Closed juliettebee closed 4 months ago

juliettebee commented 10 months ago

Hiya! So I noticed BlueBubbles doesn't use tokens and has the interesting design choice of using url params instead of headers so I created a version 2 of the API with user created tokens! This is very much a proof of concept, it has not been thoroughly tested, it was hacked together in 4 hours. This is the first time I've written in Typescript so lemme know if something's wrong!

Changes:

juliettebee commented 10 months ago

Added route: token/refresh POST {"name": "token name", "password": "token password", expireAt: 0} Where expireAt is how much longer to add to the expiration in Unix time:)

zlshames commented 6 months ago

Sorry I havent looked into this yet. I'm waiting for the right time to properly implement it