1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-23 22:55:37 +02:00

changed subscription.Message.Data to []byte and added client.Send(m) helper

This commit is contained in:
Gani Georgiev
2023-07-20 16:32:21 +03:00
parent 50d7df45eb
commit ac52befb5b
6 changed files with 76 additions and 22 deletions

View File

@@ -661,10 +661,10 @@ func (api *recordAuthApi) oauth2SubscriptionRedirect(c echo.Context) error {
msg := subscriptions.Message{
Name: oauth2SubscriptionTopic,
Data: string(encodedData),
Data: encodedData,
}
client.Channel() <- msg
client.Send(msg)
return c.Redirect(http.StatusTemporaryRedirect, "../_/#/auth/oauth2-redirect")
}