Best practice for storing tokens?

Hi I am using django rest framework authentication to generate user token

from rest_framework.authtoken import views
urlpatterns += [
    path('api-token-auth/', views.obtain_auth_token)
]

And will use this token on front-end react, what do you guys think the best way to
store the token on client side for login?

Is it safe to use the localStorage or sessionStorage? And if there is anything else that is much better, please tell me. Thank you