Help needed about Befores Hooks and session

Hello,

I’d like to implement a server-side application version check.
With initializer.registerBeforeAuthenticate it works perfectly and stops authentication if the client version is older.
However, if the player has an active session, authentication is carried out via SessionRefresh.

I see that in the documentation there’s an api POST for this route, but in the documentation the hook initializer.registerBeforeSessionRefresh(guardFunction); is commented out (Guarding APIs - Heroic Labs Documentation). Is it not yet implemented for typescript?
Should I use an RPC or pass through using GO?

Thanks for your clarification!

Hello @wizk,

The missing before/after hooks in TS for SessionRefresh are an oversight, we’ll make sure to include them in the next release.

At the moment you can register a before hook in either Lua or Go.

Best.