1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 12:43:14 +00: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:
Kyle Spearrin
2016-08-06 15:15:11 -04:00
parent f07e9e9dd0
commit da56901d17
7 changed files with 40 additions and 28 deletions

View File

@@ -59,5 +59,19 @@ namespace Bit.Core.Repositories.SqlServer
return results.ToList();
}
}
public async Task ClearPushTokenByIdentifierAsync(string identifier)
{
using(var connection = new SqlConnection(ConnectionString))
{
await connection.ExecuteAsync(
$"[{Schema}].[{Table}_ClearPushTokenByIdentifier]",
new
{
Identifier = identifier
},
commandType: CommandType.StoredProcedure);
}
}
}
}