(token string)
| 657 | } |
| 658 | |
| 659 | func (service *OIDCService) Hash(token string) string { |
| 660 | hasher := sha256.New() |
| 661 | hasher.Write([]byte(token)) |
| 662 | return fmt.Sprintf("%x", hasher.Sum(nil)) |
| 663 | } |
| 664 | |
| 665 | func (service *OIDCService) DeleteOldSession(ctx context.Context, sub string) error { |
| 666 | err := service.queries.DeleteOidcCodeBySub(ctx, sub) |
no outgoing calls
no test coverage detected