mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
Revert device id in jwt token and moved to reading from header. Added clear token by identifier API/repo/sproc so that token can be cleared after logout.
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
CREATE PROCEDURE [dbo].[Device_ClearPushTokenByIdentifier]
|
||||
@Identifier NVARCHAR(50)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
UPDATE
|
||||
[dbo].[Device]
|
||||
SET
|
||||
[Identifier] = NULL
|
||||
WHERE
|
||||
[Identifier] = @Identifier
|
||||
END
|
Reference in New Issue
Block a user