The SPA sdk does not have account linking (that is, there is no linkAccounts() method, or something of that nature), but that doesn’t mean you can’t use a User-Initiated Account Linking: Client-Side Implementation strategy in an application that uses the SPA SDK.
In the GitHub example you linked, the application is requesting an access token for the management API via the SPA SDK, then is linking the account via a POST request without involvement of the SPA SDK.